- Netduino Forums
- → Codeblack's Content
Codeblack's Content
There have been 10 items by Codeblack (Search limited from 30-March 23)
#25273 Open Source uIP porting project
Posted by Codeblack on 09 March 2012 - 01:08 PM in General Discussion
#22227 Open Source uIP porting project
Posted by Codeblack on 30 December 2011 - 08:53 AM in General Discussion
#16467 Open Source uIP porting project
Posted by Codeblack on 08 August 2011 - 04:52 AM in General Discussion
Just a quick post to let you know I'm almost ready to start porting. The only thing between me and NetduIP is a 2 week vacation.
I'm done 'playing' with the Netduino and got familiair again with basic electronics, PWM, ADC, steppermotors, LCD's and so on. I wrote some posts about it on my blog. There are a few posts left to write during my vacation. Which I'll need to publish afterwards, as my laptop is staying at home on my wife's orders .
So, who is or will be contributing to this project as well? And who is volunteering for testing? I don't think I can, or should, take this on alone. I need some people to brainstorm and think together with about how we pull this off. E.g. how close do we stay to the original uIP? It's written in C, we're working in OO, and as Szymon already mentioned, we should leverage what's in NETMF already. And what's the best way to incorporate it into the NETMF/Netduino firmware? How do we support different hardware/shields and make others able to support more? These are just a few questions that came up and that I would really like to talk about with a few people.
And talking about hardware. I have a Netduino Plus, so I'm mostly set for networking with that. But I don't mind ordering some more hardware to be able to test NetduIP on a few other configurations. Like a 'regular' Netduino and the Mini with some of the available shields. So can you guys tell me what hardware you are using? That way I can decide on what to order. Thanks.
#16309 Netduino with Adafruit Motor Shield
Posted by Codeblack on 04 August 2011 - 08:33 AM in Netduino 2 (and Netduino 1)
#16307 Netduino with Adafruit Motor Shield
Posted by Codeblack on 04 August 2011 - 08:09 AM in Netduino 2 (and Netduino 1)
#16000 ADC value divide by 1024 or 1023
Posted by Codeblack on 28 July 2011 - 12:26 PM in Netduino 2 (and Netduino 1)
#15992 ADC value divide by 1024 or 1023
Posted by Codeblack on 28 July 2011 - 08:07 AM in Netduino 2 (and Netduino 1)
#15982 ADC value divide by 1024 or 1023
Posted by Codeblack on 27 July 2011 - 09:56 PM in Netduino 2 (and Netduino 1)
I'm using an ADC port to measure voltage (of a solar charged battery). I use the standard 3.3V Aref and the default 0-1023 range. With a voltage divider (5k6 + 30k) I'm able to measure just over 20V.
Logic tells me (as well as some examples I found) I should calculate the actual voltage by dividing by the number of steps (float actualVoltage = (float)adcValue / 1024 * 3.3). Except it doesn't match the voltage I'm measuring with my DVM. If I use 1023 (float actualVoltage = (float)adcValue / 1023 * 3.3) the voltages match perfectly. I first missed the mismatch when measuring the voltage directly at the port, since it's much smaller there. At the solarpanel/battery the difference is more noticeable.
Now, simplifying the problem, connecting the ADC port directly to 3.3V gives me 3.2968 when dividing by 1024 and exactly 3.3000 when dividing by 1023.
Can anyone tell me, what the logic is behind this? Or am I missing the logic here completely? Thanks in advance!
#15471 Open Source uIP porting project
Posted by Codeblack on 14 July 2011 - 12:27 PM in General Discussion
I received my NetDuino Plus yesterday, after it spending almost a week at Dutch customs . I spent last night soldering 2 shields (Moto & BreadBoard) and expect to spend the next few days trying out my first NETMF code and playing with several hardware pieces.
I have many projects in my mind, but the main one has to be home automation. I want to use 6LoWPAN for most devices and WiFi for high bandwidth stuff like audio. For most of the 6LoWPAN devices, I might just use an ATmega128RFA1. But for the ease of development I could also do NETMF with a 802.15.4 radio-chip. Still not sure, my mind toggles almost every minute... . For connecting the 6LoWPAN world to the full IP world and for the WiFi/LAN devices I'll definitely use NETMF/NetDuino. To get familiair with the 802.15.4 MCU/radio chips I've ordered an AVR RZ RAVEN dev-kit, with an extra RZ RAVEN USB stick to be used as a 802.15.4 sniffer. All that's needed now is a 802.15.4-shield .
I'm not yet sure what to do on top of 6LowPAN. I've heard ZigBee is being adopted to use 6LowPAN. There is also a specification for using REST with 6LoWPAN (CoAP: Constrained Application Protocol), which maybe interesting together with a UPnP-like protocol. I do know that I want all my devices to talk IP and that I want 6LoWPAN on my power/resource constrained devices.
I have no experience with NETMF yet, but I do have over 10 years .NET/C# experience. And many years of C/C++ and assembler before that. I have 2 JeeNodes with some plugs, but I find the development experience with Arduino somewhat dissapointing.
I would very much like to contribute to the uIP port for .NET, if I may. Although I do need to quickly get familiair with NETMF and NetDuino first .
#15457 [PENDING/SLOW MOVING] Home Automation With The Netduino
Posted by Codeblack on 14 July 2011 - 09:11 AM in Project Showcase
- Netduino Forums
- → Codeblack's Content
- Privacy Policy