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

Netduino controls Syma S107


  • Please log in to reply
3 replies to this topic

#1 pater

pater

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationWarsaw

Posted 06 September 2011 - 11:51 AM

Hello community,
I would like to make from my netduino a Syma S107 IR transmitter. I found protocol description used for communication ( http://www.avergotti...controller.html ).I have IR Diode 940nm ( http://nettigo.pl/pu...273_LTE-302.pdf ) and i would like to connect it to netduino. Do i treat it as a normal diode ? I mean can i connect it with 200 ohm resistor for digital pins 2,3,7 ? Moreover if i would like to convert code from http://pastebin.com/raw.php?i=acigQFp3 do i need to use InterruptPin ? I see functions like those below in it this sample
cli();  // this turns off any background interrupts
sei();  // this turns them back on
and i don't know which functions in c# is equivalent .

Thanks a lot for your help.

Best Regards,
pater

#2 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 06 September 2011 - 12:42 PM

The diode allows a current up to 50mA, while the Netduino cannot give so much. That's a pity because as an IR, you should obtain as many irradiation as possible. So, just to make a test, you may connect directly (with the 200Ohms), but afterward you should conveniently drive the diode with a transistor or a mosfet. About the code, there's no need for cli/sei...The .Net Micro Framework is not a low-level framework, and everything is managed (laying above the low-level layer). Porting code from C to C# would not be difficult, unless you must reproduce critical functions like the yours: timing. The time/delay accuracy is one of the bigger weakness of the Micro Framework (so Netduino). The underlying implementation makes an extra work (garbage collection), that requires time to complete. That leads to an unpredictable "pauses" (even very short) during your program flow. Normally these pauses don't affect the correct behavior, but if you are looking for precision the effort will be noticeable. Cheers
Biggest fault of Netduino? It runs by electricity.

#3 pater

pater

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationWarsaw

Posted 06 September 2011 - 12:53 PM

Thank You Mario, now everything seems clear for me. If there will be some progress i will post results.

#4 Chris Seto

Chris Seto

    Advanced Member

  • Members
  • PipPipPip
  • 405 posts

Posted 06 September 2011 - 02:02 PM

Heh, neato, was going to do this project myself. Was wondering if anyone else had done the same thing. Syma makes a very ideal aircraft for computer, very naturally stable with little/no user control side control theory needed.




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.