ushort my16bits = bus.Value;Here's the driver with some examples: http://forums.netdui...17-io-expander/ The driver can also alert you with interrupts whenever any of the 16 pins changes.
- Netduino Forums
- → hanzibal's Content
hanzibal's Content
There have been 386 items by hanzibal (Search limited from 27-September 23)
#56297 Extending Digital Input using game Controller
Posted by hanzibal on 23 February 2014 - 01:32 PM in General Discussion
#56307 Extending Digital Input using game Controller
Posted by hanzibal on 23 February 2014 - 05:38 PM in General Discussion
#49998 Silly Voice Synth on NP2....
Posted by hanzibal on 26 May 2013 - 09:48 PM in Project Showcase
Yes, I believe it whould be very hard to modulate that in managed code.
If I'm not mistaken, you need about 10 times the freq of the highest note. With maybe ~8khz for the "ssss" sounds (?), you would need ~80kHz of PWM.
That is of course no problem in itself but you also need to be around to change the duty cycle every 125us and even if you manage that, there would be very little time left for other processing and I suppose there are quite some.
EDIT: Oh, and this is the song from your video. I find your robotic vocals slightly more rhythmic though
#49976 Silly Voice Synth on NP2....
Posted by hanzibal on 26 May 2013 - 07:16 AM in Project Showcase
#51614 Power Switch Question
Posted by hanzibal on 21 July 2013 - 07:34 PM in Netduino 2 (and Netduino 1)
#51600 Power Switch Question
Posted by hanzibal on 20 July 2013 - 10:39 PM in Netduino 2 (and Netduino 1)
#51602 Power Switch Question
Posted by hanzibal on 20 July 2013 - 11:28 PM in Netduino 2 (and Netduino 1)
#50746 Hd44780Lcd busy flag
Posted by hanzibal on 23 June 2013 - 09:52 PM in Netduino Plus 2 (and Netduino Plus 1)
It's probably coming from two or more threads accessing the LCD driver simultaneously, try adding lock statements around things that need be executed exclusively. There was a case recently with the same problem - and the same solution. I'll see if I can dig it out...
EDIT: Turned out the mentioned case was in fact this very thread :-)
Have a look at some code earlier in this thread on how to use the lock statement. You see, the LCD driver is not "thread safe" meaning it cannot deal with multiple threads. What happens is that your main thread gets interrupted in the middle of transferring data to the LCD by the interrupt service routine which then starts sending its own data to the LCD in the middle of the ongoing operation. The LCD will get very confused by this and put in an out-of-sync state effectively garbling every operation from there on.
EDIT: Oh, and you should never have a thread sleep in an interrupt service routine! It should act like a hit squad - get in, do the job and get the h-ll out of there
#50310 Power supply specifies minimum output voltage?
Posted by hanzibal on 06 June 2013 - 12:16 AM in General Discussion
#49417 Netduino plus 2 + Real time clock + RFID
Posted by hanzibal on 14 May 2013 - 10:18 AM in Netduino Plus 2 (and Netduino Plus 1)
#49400 Netduino plus 2 + Real time clock + RFID
Posted by hanzibal on 13 May 2013 - 10:02 PM in Netduino Plus 2 (and Netduino Plus 1)
#52468 Low baud rates on serial port
Posted by hanzibal on 30 August 2013 - 07:39 AM in Netduino Plus 2 (and Netduino Plus 1)
#52524 Low baud rates on serial port
Posted by hanzibal on 03 September 2013 - 02:36 PM in Netduino Plus 2 (and Netduino Plus 1)
Yes, a soft UART would work for receiving since interrupts are correctly time stamped but sending is trickier.
Still, if the meter doesn't really use full duplex (won't receive and respond in parallel) you might get away with sending too - 300 baud means >1 ms between pin toggles and that is a pretty long time even for an NP2.
#50682 Home Automation - Want to know more?
Posted by hanzibal on 21 June 2013 - 12:22 AM in General Discussion
http://www.avsforum....for-itach-irule
And perhaps also this one:
http://itachtoolkit.codeplex.com/
And maybe this too:
http://forums.netdui...ased-ir-remote/
All in all you can build your own iTach emulator or HTTP listener on an NP or NP2 to carry out the commands against whatever h/w you want to control.
The thing is that the iRuleAtHome remote control and builder is just awesome, I use it for all kinds of stuff in my house. I even use it to turn the christmas tree on and off during that time of year. In this post there's a video on controlling a Netduino mini over ethernet:
http://forums.netdui...m-a-smartphone/
You can of course also do it with a PC, Raspberry PI or what have you.
#56201 Out of pins. Need advice on how to expand
Posted by hanzibal on 19 February 2014 - 10:57 AM in Netduino 2 (and Netduino 1)
#51088 HELP with servo on NP2
Posted by hanzibal on 04 July 2013 - 07:32 PM in Netduino Plus 2 (and Netduino Plus 1)
#51944 Exploiting the world of R/C hobby vehicles
Posted by hanzibal on 04 August 2013 - 08:34 PM in General Discussion
#51929 Exploiting the world of R/C hobby vehicles
Posted by hanzibal on 03 August 2013 - 10:00 PM in General Discussion
#51918 Exploiting the world of R/C hobby vehicles
Posted by hanzibal on 03 August 2013 - 07:20 PM in General Discussion
#51018 Mcp23s17 (SPI) with NP2+
Posted by hanzibal on 02 July 2013 - 02:01 PM in Netduino Plus 2 (and Netduino Plus 1)
Hi, did you get this driver working eventually?
#51657 Make instance of module static
Posted by hanzibal on 24 July 2013 - 08:41 AM in Netduino Go
#51917 button push
Posted by hanzibal on 03 August 2013 - 07:08 PM in General Discussion
#50732 Netduino + Video Experimenter shield
Posted by hanzibal on 23 June 2013 - 08:26 AM in Netduino Plus 2 (and Netduino Plus 1)
#52501 Problem with SPI Mode 1
Posted by hanzibal on 02 September 2013 - 05:04 PM in Netduino Plus 2 (and Netduino Plus 1)
#51013 BUILD 2013
Posted by hanzibal on 02 July 2013 - 09:09 AM in General Discussion
Ok, thanks!
- Netduino Forums
- → hanzibal's Content
- Privacy Policy