- Netduino Forums
- → xikky's Content
xikky's Content
There have been 20 items by xikky (Search limited from 07-May 23)
#28384 Battery consumption
Posted by xikky on 01 May 2012 - 08:00 AM in Netduino Plus 2 (and Netduino Plus 1)
#28380 Battery consumption
Posted by xikky on 01 May 2012 - 06:54 AM in Netduino Plus 2 (and Netduino Plus 1)
#28352 Battery consumption
Posted by xikky on 30 April 2012 - 04:06 PM in Netduino Plus 2 (and Netduino Plus 1)
#28347 Battery consumption
Posted by xikky on 30 April 2012 - 03:07 PM in Netduino Plus 2 (and Netduino Plus 1)
Netduino Plus
Joystick + Board
Bluetooth
Accelerometer
My area is in software programming and thus I have no idea how many 9V batteries I need to power up these components together. Can somebody help me on this?
I would also appreciate if you tell me the method/formula used and what to look for.
Thank you!
#25851 Netduino Serial Port Code Review
Posted by xikky on 22 March 2012 - 03:19 PM in Project Showcase
#25809 Bluetooth Communication
Posted by xikky on 21 March 2012 - 02:45 PM in Netduino Plus 2 (and Netduino Plus 1)
For my personal project, I am trying to communicate between my PC and Netduino, through Bluetooth. Hence I have attached BlueSMiRF Gold to Netduino, and a USB bluetooth dongle which I found laying around in my house, and which I attached to my PC.
When I came to implement the code, I realized that I have no understanding of how this works. I wish you to have some patience and explain to me what I am doing wrong and what I should be doing.
For my bluetooth testing this is what I am doing:
I have deployed this into my netduino:
public class Program { static SerialPort serial; public static void Main() { // initialize the serial port for COM1 (using D0 & D1) serial = new SerialPort(SerialPorts.COM1, 115200, Parity.None, 8, StopBits.One); // open the serial-port, so we can send & receive data serial.Open(); // add an event-handler for handling incoming data serial.DataReceived += new SerialDataReceivedEventHandler(serial_DataReceived); // wait forever... Thread.Sleep(Timeout.Infinite); } static void serial_DataReceived(object sender, SerialDataReceivedEventArgs e) { // create a single byte array byte[] bytes = new byte[32]; // as long as there is data waiting to be read while (serial.BytesToRead > 0) { // read a single byte serial.Read(bytes, 0, bytes.Length); // send the same byte back serial.Write(bytes, 0, bytes.Length); } } }
With this code from above, I am expecting that any data received from the BlueSMiRF is returned back.
I have opened a Windows Application to send data from PC to Netduino through Bluetooth, and this application also receives the data back. This is the code:
public partial class Form1 : Form { public SerialPort serial; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // initialize the serial port for COM1 (using D0 & D1) serial = new SerialPort("COM6", 115200, Parity.None, 8, StopBits.One); // open the serial-port, so we can send & receive data serial.Open(); serial.DataReceived += new SerialDataReceivedEventHandler(serial_DataReceived); } void serial_DataReceived(object sender, SerialDataReceivedEventArgs e) { // create a single byte array byte[] bytes = new byte[32]; // as long as there is data waiting to be read while (serial.BytesToRead > 0) { // read a single byte serial.Read(bytes, 0, bytes.Length); lblRecievedData.Text = bytes.ToString(); } } private void btnSend_Click(object sender, EventArgs e) { System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding(); byte[] buffer = encoding.GetBytes(txtSendData.Text); serial.Write(buffer, 0, buffer.Length); } }
In a summary, this code lets the user fill a Textbox and click Send, to send data to Netduino. In return, Netduino should send the data back and this should be printed in the Label Control.
When I run the above code, the 'Connect' LED on the BlueSMiRF light up Green, so I am guessing that the connection is set up right. Data seems to be sent fine, since on debug, the byte[] buffer is filled appropriately. But the DataReceived Event is never accessed.
Please help me out on this. I searched on the internet, but I only found various ways to code Netduino to Send and Receive data through bluetooth. But not what to code to send data to Netduino from PC. Moreover, I am new to Netduino and hardware coding and I am feeling totally lost now.
#25142 Netduino as a Joystick Device
Posted by xikky on 06 March 2012 - 12:24 PM in Netduino Plus 2 (and Netduino Plus 1)
#25058 Joystick - Filtering Input
Posted by xikky on 04 March 2012 - 10:26 AM in Netduino Plus 2 (and Netduino Plus 1)
#25022 Joystick - Filtering Input
Posted by xikky on 03 March 2012 - 12:36 PM in Netduino Plus 2 (and Netduino Plus 1)
I would really appreciate if someone shows me some code examples for joysticks.
#24692 Joystick and Bluetooth Module
Posted by xikky on 26 February 2012 - 12:18 PM in Netduino Plus 2 (and Netduino Plus 1)
#24684 Joystick and Bluetooth Module
Posted by xikky on 25 February 2012 - 06:56 PM in Netduino Plus 2 (and Netduino Plus 1)
1. What is the difference between the two joysticks that I've put a link for? My personal preference is the first one since the other is out of stock and since I'm buying all the stuff from www.hwkitchen.com
2. Imp: How do I connect the joystick to the breakout board? Is the breakout board used to connect I/O device to a Development board?
3. And do you have any guides to share for me on how to connect and program these devices on the Netduino. Best I found for bluetooth is this Link (which I'm hoping RN-41 and RN-42 are no different to connect and program). I found nothing yet regarding the joystick. Please share with me some guides that you know on these two subjects as I'm still new on this.
4. And anyone bought from HW Kitchen before?
Thank you in advance
#24677 Joystick and Bluetooth Module
Posted by xikky on 25 February 2012 - 01:49 PM in Netduino 2 (and Netduino 1)
1. What is the difference between the two joysticks that I've put a link for? My personal preference is the first one since the other is out of stock and since I'm buying all the stuff from www.hwkitchen.com
2. Imp: How do I connect the joystick to the breakout board? Is the breakout board used to connect I/O device to a Development board?
3. And do you have any guides to share for me on how to connect and program these devices on the Netduino. Best I found for bluetooth is this Link (which I'm hoping RN-41 and RN-42 are no different to connect and program). I found nothing yet regarding the joystick. Please share with me some guides that you know on these two subjects as I'm still new on this.
4. And anyone bought from HW Kitchen before?
Thank you in advance
#24672 Displacement sensor
Posted by xikky on 25 February 2012 - 08:59 AM in Netduino Plus 2 (and Netduino Plus 1)
Hello...I'm not sure whether could help you, but the stuffs here -at least- may give you an hint.
http://www.tinyclr.i...ality-2012.aspx
(Sorry, it's Italian)
Have a look at the pics and at the movie. It's a very nice way to record what a person does.
Cheers
Thanks for the link. No problem with Italian as it is the 3rd spoken language in my country I'm from Malta. Unfortunately it seems as ADXL345 does not seem to be the right sensor for my project. But nonetheless new ideas sparked!
I would still like somebody to tell me which sensor would read and measure movement displacement for my personal interest.
#24670 Displacement sensor
Posted by xikky on 25 February 2012 - 08:14 AM in Netduino Plus 2 (and Netduino Plus 1)
#24669 Connecting ADXL345 (wireless)
Posted by xikky on 25 February 2012 - 07:56 AM in Netduino Plus 2 (and Netduino Plus 1)
On that project there are 2 "parts":
-rover with mbed+xbee+power wires
-controller with mbed+adx345+xbee+power wires
Now, what I think you are trying to accomplish is:
-take measurements using adxl345+wireless transmitter+battery powered
-netduino receives data and sends it to computer=>netduino+wireless receiver+usb powered
Since the adxl345 talks SPI and I2C, you will need a microcontroller to interface it with your transmitter OR a transmitter with that functionality built in. Popular wireless transmitter(transceivers actually) are the xbee and the nrf24 devices from Nordic. In fact Nordic has some SoCs that already contain a programmable 8051 microcontroller.
On netduino's side, you will use the corresponding receiver and you can have it transmitting data to your pc via virtual serial port and powered using a 5V FTDI cable. Note that you will still need Netduino's built in usb connector for debugging and deployment using this approach.
I hope to have cleared some of your questions.
thanks for the answer! i can see the horizon someway better now
#24645 Connecting ADXL345 (wireless)
Posted by xikky on 24 February 2012 - 05:19 PM in Netduino Plus 2 (and Netduino Plus 1)
I don't understand what is mbed, and code seems not in C# :S
#24618 Connecting ADXL345 (wireless)
Posted by xikky on 23 February 2012 - 04:47 PM in Netduino Plus 2 (and Netduino Plus 1)
You cannot use the USB connection... The additional board you see there is a FTDI board connected to a serial port on the ND. This allows communication from your PC to the Netduino via serial communication.
sorry for my ignorance .. but what is the other USB wire used for then? Can you please describe me the difference between the two?
#24616 Connecting ADXL345 (wireless)
Posted by xikky on 23 February 2012 - 03:54 PM in Netduino Plus 2 (and Netduino Plus 1)
#24612 Connecting ADXL345 (wireless)
Posted by xikky on 23 February 2012 - 03:18 PM in Netduino Plus 2 (and Netduino Plus 1)
So I'm asking here just to make sure:
Is there a possible way to connect the ADXL345 sensor with Netduino wirelessly?
...
One more thing .. since I am new on this and still I'm not an owner of a Netduino I am curious; can I power the Netduino from my PC using USB and at the same time let Netduino and PC communicate (send data such as ADXL345 inputs) using the same USB wire? Or am I talking gibberish?
The picture below made me confused
Can't I use the USB connected from Netduino and PC to send the data from the ADXL345 rather than having another USB wire as shown in the picture.
#24455 Netduino Emulator
Posted by xikky on 20 February 2012 - 10:09 AM in Netduino 2 (and Netduino 1)
- Netduino Forums
- → xikky's Content
- Privacy Policy