- Netduino Forums
- → hanzibal's Content
hanzibal's Content
There have been 386 items by hanzibal (Search limited from 27-September 23)
#50933 Ultrasonic sensor code.
Posted by hanzibal on 29 June 2013 - 02:58 PM in Netduino 2 (and Netduino 1)
#55288 Multiple *different* spi devices
Posted by hanzibal on 10 January 2014 - 08:58 PM in General Discussion
Yes, the Netduino can certainly talk to multiple SPI slaves, but you must serialize your data transfers. Basically, you create several SPI configurations and swap between these when interfacing to one or the other slave devices using different !CS pins.
In a multi-threaded environment, you must make sure that transfers are not interrupting each other. If necessary, use the lock statement to protect your SPI configuration swapping mechanism.
There are several implementations available, here's one for you:
#55386 Multiple *different* spi devices
Posted by hanzibal on 15 January 2014 - 02:06 AM in General Discussion
#55449 Multiple *different* spi devices
Posted by hanzibal on 17 January 2014 - 09:53 PM in General Discussion
Those must have been some really bad wires, at these small currents and short distances, one would think such things should not matter, but there you go. Glad you solved it!
#50017 is it possible to use existing c code with NETMF ?
Posted by hanzibal on 27 May 2013 - 01:40 PM in General Discussion
Is there anyway I could re-use existing C code libraries in my project. The work that would be involved in translating them in C# would be enormous.
I've ported lots of code from C to C# and found it to be a very straight forward (almost mechanical) process even though it has not always been my own code to begin with. Many things can be taken care of with simple search and replace.
There are some converters out there but I have no idea if they're any good - but they should at least be able to do the "no brainers" for you:
#50835 N+2 communication with WebApi
Posted by hanzibal on 26 June 2013 - 12:34 PM in Project Showcase
Nice, is it an Android phone and did you write the app for it?
#50870 N+2 communication with WebApi
Posted by hanzibal on 27 June 2013 - 11:01 AM in Project Showcase
Ah yes, silly me - I see now that you got the same webpage open in the browser of your PC.
#52441 Long live the Netduino
Posted by hanzibal on 29 August 2013 - 08:43 AM in General Discussion
I agree, the Netduino and Pi are not comparable and have different audiences, I was primarily the (in my opinion) somewhat unjustified hype around it.
OT: A while ago, I got a Cubieboard and yes, it still sits in unopened box :-) but I mention it because it's comparably priced, has superior hardware over Pi and intended on h/w hacking/interfacing. Runs Android 4.x, Ubuntu, Kali and Debian:
#52428 Long live the Netduino
Posted by hanzibal on 28 August 2013 - 07:07 PM in General Discussion
#50358 L293 H-bridge Control
Posted by hanzibal on 08 June 2013 - 10:30 AM in Netduino Mini
Ok, just modify the erroneous line like this:
// Defines the HBridge IC on the correct pinsHBridgeMotorDriver = new HBridge(PWMChannels.PWM_PIN_20, Pins.GPIO_PIN_19, PWMChannels.PWM_PIN_18, Pins.GPIO_PIN_17);
It works for me (Netduino mini with framework 4.2) and should for you too I hope.
EDIT: Works = the code compiles but I don't have a H-brigde driver and forgot to check with the scope.
#50308 L293 H-bridge Control
Posted by hanzibal on 05 June 2013 - 09:08 PM in Netduino Mini
#50345 L293 H-bridge Control
Posted by hanzibal on 07 June 2013 - 09:57 AM in Netduino Mini
#50367 L293 H-bridge Control
Posted by hanzibal on 09 June 2013 - 12:47 PM in Netduino Mini
That is great news, good luck with your project!
#50909 Main Thread Hangs
Posted by hanzibal on 28 June 2013 - 11:56 PM in Netduino Plus 2 (and Netduino Plus 1)
#50897 Main Thread Hangs
Posted by hanzibal on 28 June 2013 - 02:35 PM in Netduino Plus 2 (and Netduino Plus 1)
The scheduler may have problems switching between threads since they are all running in tight loops. Try yielding briefly in the loop by calling Thread.Sleep(1) once in a while.
#49971 3x4 Matrix Keypad bounce problem
Posted by hanzibal on 25 May 2013 - 09:52 PM in Netduino 2 (and Netduino 1)
#49975 3x4 Matrix Keypad bounce problem
Posted by hanzibal on 26 May 2013 - 06:30 AM in Netduino 2 (and Netduino 1)
#49966 3x4 Matrix Keypad bounce problem
Posted by hanzibal on 25 May 2013 - 08:31 PM in Netduino 2 (and Netduino 1)
#50462 Netduino Plus 2, SPI interferes with Networking?
Posted by hanzibal on 13 June 2013 - 10:55 AM in Netduino Plus 2 (and Netduino Plus 1)
#50776 a new i/o pin
Posted by hanzibal on 24 June 2013 - 10:58 PM in Netduino Mini
#50857 a new i/o pin
Posted by hanzibal on 27 June 2013 - 06:30 AM in Netduino Mini
#50736 Seeking economical premade voltage sensor array?
Posted by hanzibal on 23 June 2013 - 12:19 PM in Netduino Plus 2 (and Netduino Plus 1)
#50754 Seeking economical premade voltage sensor array?
Posted by hanzibal on 24 June 2013 - 08:47 AM in Netduino Plus 2 (and Netduino Plus 1)
Yes, the general idea was to use an analogue multiplexer that can handle the voltage and then a single voltage divider between that and the Netduino. The CD4067B 16 channel mux/demux can handle up to 20V but Vcc must also be 20V:
http://www.ti.com/li...ink/cd4097b.pdf
If 20V is not readily available you need a step-up converter from 12V which infortunately would increase cost. On the other hand, such converters come quite cheaply on eBay:
http://www.ebay.com/...=item1c33d18e42
If you spend some time searching, you might be able to find a demultiplexer that can handle input voltage significantly greater than Vcc and then of course you won't need the converter.
Audi?
#50756 Seeking economical premade voltage sensor array?
Posted by hanzibal on 24 June 2013 - 09:18 AM in Netduino Plus 2 (and Netduino Plus 1)
It suddenly hit me that you need an analogue switch instead of a multiplexer. There are many but this one is a 16 channel switch that can deal with 230V signals. I don't know but they could be expensive.
http://datasheets.ma...05-MAX14806.pdf
EDIT: Here's an overview from Texas Instruments:
#56290 Extending Digital Input using game Controller
Posted by hanzibal on 23 February 2014 - 10:36 AM in General Discussion
- Netduino Forums
- → hanzibal's Content
- Privacy Policy