Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Connecting ADXL345 (wireless)


  • Please log in to reply
9 replies to this topic

#1 xikky

xikky

    Member

  • Members
  • PipPip
  • 20 posts

Posted 23 February 2012 - 03:18 PM

I wish to connect a ADXL345 with a Netduino using a wireless connection. But after doing my own research my hopes are vanishing and I am starting to think that this is not possible.

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

Posted Image

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.

#2 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 23 February 2012 - 03:45 PM

Strange question indeed... To answer to your question, I must ask you another one (hoping that's not entering in a endless loop). The ADXL is a "passive" component, that is a sensor, and it has to be read from some subject. So, you must have an intermediate "subject" that reads the ADXL, then sends the data wirelessly. Now, the simplest way coming to my mind is using another microcontroller. That could be almost any *duino board, being able to interface with a wireless data-link. Just another question...*infrared*, could be feasible, or...better: could you explain what's you goal? Cheers
Biggest fault of Netduino? It runs by electricity.

#3 xikky

xikky

    Member

  • Members
  • PipPip
  • 20 posts

Posted 23 February 2012 - 03:54 PM

I'm now getting a clear picture, thanks for your reply. My primary goal was to have an ADXL to send data wirelessy (and directly) to the intermediate subject - Netduino. But now I understand why this ain't possible and so I am concluding that I need 2 Netduino boards to make this functional. Do you have any ideas and answers for me for my second question about the USB connection?

#4 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 23 February 2012 - 04:21 PM

I'm now getting a clear picture, thanks for your reply. My primary goal was to have an ADXL to send data wirelessy (and directly) to the intermediate subject - Netduino. But now I understand why this ain't possible and so I am concluding that I need 2 Netduino boards to make this functional.

Do you have any ideas and answers for me for my second question about the USB connection?


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.

#5 xikky

xikky

    Member

  • Members
  • PipPip
  • 20 posts

Posted 23 February 2012 - 04:47 PM

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?

#6 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 23 February 2012 - 07:01 PM

sorry for my ignorance .. but what is the other USB wire used for then? Can you please describe me the difference between the two?


The one built onto the Netduino board is the default for software deployment to the Netduino as well as debugging using Visual Studio or MFDeploy. The one that is added on with the FTDI card is for serial communication however using the modified MFDeploy that allows you to switch the debug port, you can then deploy and debug via serial (the FTDI card).

#7 xikky

xikky

    Member

  • Members
  • PipPip
  • 20 posts

Posted 24 February 2012 - 05:19 PM

As to my previous question about connecting ADXL345 with Netduino wireless, I found this project which seems that they managed to make this happen. see this link: My link

I don't understand what is mbed, and code seems not in C# :S

#8 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 24 February 2012 - 06:55 PM

mbed is a tool for Rapid Prototyping with Microcontrollers. The code on that page is C++.

#9 Geancarlo2

Geancarlo2

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 24 February 2012 - 09:05 PM

As to my previous question about connecting ADXL345 with Netduino wireless, I found this project which seems that they managed to make this happen. see this link: My link

I don't understand what is mbed, and code seems not in C# :S


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.

#10 xikky

xikky

    Member

  • Members
  • PipPip
  • 20 posts

Posted 25 February 2012 - 07:56 AM

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 :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.