What potentiometer are you using?
10K
![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
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.
Szymon's ContentThere have been 108 items by Szymon (Search limited from 01-July 23) #1044 More blinking leds
10K #1050 More blinking leds
It's just regular potentiomater that I got from a local hobby electronics store in my town. Looks exactly like this one: http://www.oreind.co...products_id=859 I only put a platics knob on it :-) #1412 More blinking leds
I think you are right. The classes from SecretLabs.NETMF.Hardware.Netduino namespace should be actually declared as internal classes on Netduino class. Then it would be clear that you have to write for example Netduino.Pins.GPIO_PIN_D3. Currently this code is invalid. If I remmember ut is done this way in GHI and DeviceSolutions SDKs. #1032 More blinking leds
Hi,
I have published article on my blog that shows how to use shift registers to extend number of digital output pins on Netduino. In particular I demonstrate how to use it to control a 7-segment display or any other LED components. In two examples I show how to display values from potentiometer and SHT15 temperatuer & humidity sensor.
Here is the blog post: http://geekswithblog...nking_leds.aspx
I also made a short video to show how this works:
You can download the source code here: http://cid-4c7ec0c21...s^_20100822.zip
Please let me know if you like it or not, and if you would like to see more projects like this from me.
#905 SFE Joystick Shield
Thanks for sharing your findings. Looks like the fact that Vref is not connected on Netduino causes troubles with some shields, and also is bit confusing for people comming from arduino. Maybe Chris could explain why it was done this way and if there is any technical difficulty to make it connected by default to 3V3 in future revisions. #1995 FEZ Panda
Actually according to this post http://www.tinyclr.com/forum/14/875/ this time they are going to release the firmware source code for this board. If thats true I really like the change of direction. Whats more Guss Issa writes a new ebook about the porting kit. You can download it here http://www.tinyclr.c...rting NETMF.pdf #146 DMX netduino
This sounds similar to one of the projects I want to implement myself. Could you provide more detail on what you are going to build? -Szymon #1214 Hobby Grade RC Car Control Suite
Chris,
The project looks super cool! Please keep posting about your progress. I'm busy now with some other things but would like to follow along and build one later too.
#296 LCD interface
Here is one more LCD interface that might work. It runs on 3.3V but uses I2C instead of Serial.
http://shop.jeelabs....oducts/lcd-plug
#295 LCD interface
I'm going to try to fit Netduino in Adafruit's Arduino Enclosure http://www.adafruit....products_id=271
I think it would fit nicely and only need to do one more cut out for micro USB. And I plan to add LCD display and buttons for debugging of my device.
#1637 Motor Control in an Airsoft gun
Hi Stacy,
Recenty there was a series of posts on the Make Blog about using Arduino to control aNerf Sentry Gun. Maybe this will give you some ideas to start with:
Here are few of the posts in this series:
http://blog.makezine...uild_wirin.html
http://blog.makezine...emassembly.html
http://blog.makezine...uild_prima.html
http://blog.makezine...denclosure.html
http://blog.makezine...king_stand.html
http://blog.makezine...uild_motor.html
They apparently used relays for this project:
http://blog.makezine...olderrelay.html
#5639 Communicating with XBee
GDSever,
I've seen the Grommet project, but decided to use the XBee classes from MFToolkit (http://mftoolkit.codeplex.com/) because I also want to use the HTTP server implementation.
Did you see it as well? I'm curious if you have compared them and it there is any reason to choose one over another. If there is anything missing I guess it would be better to pull the resources together and maintain single library rather than split into two. I will give Gromet another look too.
Thanks,
-Szymon
#5723 Communicating with XBee
This happened to me as well during one of the firmware updates. Fortunatelly I found that there is a way to do factory reset on XBee. First you need to get X-CTU to prompt you for additional action, and then short couple of pins on XBee. Read here for instructions: http://forum.sparkfu...ad0f7115f82a106 (find replies from artcar12 and heathkit). #5701 Communicating with XBee
Yes, you are right that MF Toolkit implementation is more comprehensive. However as you pointed most people would only use the common functions most of the time.
I think at minimum this includes:
- initialize xbee module
- read module configuration
- discover other nodes in network (in order to map node id's to short address)
- send and received binary data
For this I think Grommet does a good job. I especially like that the API is focused on executing these higher level operations rather than exposing the entire XBee API. When I started exploring MF Toolkit it was hard to guess how I'm supposed to use it to execute these functions. IMO if we want the library simple to use it should hide the technical details of XBee protocol and instead expose easy to use functions.
Another reason is the size. I plan to use Netduino Plus as a gateway passing web requests to other nodes connected via XBee. Because Netduino Plus has limited memory it is important to make the libraries as small as possible. I did a quick comparision of the PE files (not the dlls) and Grommet is about 4 times smaller then Grommet. Unfortunatelly MF doesn't trim the code that is not used by application during deploymnet so we should minimize the code ourselves. I have managed to trim the Grommet library to about 9K (the PE file again).
Right now I'm reviewing the code in Grommet. One think that I liked in particular in MF toolkit was the usage of ByteReader\ByteWriter classes. This greatly streamlines the code for parsing and serializing the API Frames. Right now I'm trying to bring them to Grommet replacing calls like Utility.InsertValueIntoArray or Utility.CombineArrays. This also replaces calls to BigEndianConverter.
#5687 Communicating with XBee
Just to make it clear: I'm not the author of MFToolkit - it was written a while ago by Michael Schwarz, and he recently updated it to MF 4.1. Michael is active on this forum so I hope he can join our conversation. What I was suggesting is to take a look at both XBee libraries and maybe try to decide which one is more complete, and see if we can merge them and move forward as single code base. I will be happy to help with this effort. For now I will look at the FrameBuilder class in Grommet and see if this can be migrated to MFToolkit. What do you mean by seaing that MFToolkit implementation is "more heavy" ? Thanks, -Szymon #738 Unboxing: first impressions?
I received my frist Netduino that I ordered on August 4 from Proto Advantage and it was shiped next day via Air Mail from Canada. Arrived today so it took 2 weeks to get it to Poland. Thanks god we have European resellers now :-)
Small box looks cool and I got the USB cable inside the envelope. Anyone can tell me what was the motivation to use micro USB instead of more common mini USB ?
The board itself loosk little empty when you compare it to regular Arduino - I guess if you'd trim all the empty space you could put it on a board half that size (Netduino Nano parhaps?). But overall it looks great. Nice work guys!
#3117 Using TimeService
No worries. Maybe what you had in mind was using DHCP insteado of static IP configuration, which Chris warned that its not officially supported yet. #3114 Using TimeService
Indeed DNS is supported and works fine for me. I think for network connected data logger or similar web enabled scenario it would be beneficial to synchronize to proper local time. Even more because Netduino board doesn't include Real Time Clock so the time needs to be set after each reset. Michael Schwarz shows how to query the NTP server in managed code and this doesn't look overly complex (I will try it today): http://weblogs.asp.n...rk-devices.aspx If this is not adding much to the firmware size it would be good to have it implemented. #3102 Using TimeService
Hi,
I'm trying to use the TimeService class (from Microsoft.SPOT.Time assembly) to synchronize time on Netduino with NTP server. Here is my code: var timeServer = "time.nist.org"; IPHostEntry timeServerHostEntry = Dns.GetHostEntry(timeServer); var status = TimeService.UpdateNow(timeServerHostEntry.AddressList[0].GetAddressBytes(), 200); Debug.Print("Current time UTC"+status.CurrentTimeUTC); But I get this exception when calling any method on TimeService: #### Exception System.NotSupportedException - CLR_E_NOT_SUPPORTED (1) #### #### Message: #### Microsoft.SPOT.Time.TimeService::UpdateNow [IP: 000a] #### #### NetworkTest.Program::Main [IP: 0044] #### A first chance exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.Time.dll An unhandled exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.Time.dll Is this function implemented in Netduino Plus firmware? #3104 Using TimeService
I have tried the same code with the Tahoe II board and in the emulator. Both work fine so I guess this is simply not implemented in the Netduino Plus firmware. #722 How to access hardware timers/counters?
I have added both as product change proposals on community site:
http://www.netmf.com...02-a0462ba8340c
http://www.netmf.com...4e-7cf309a9f296
#721 How to access hardware timers/counters?
I have to agree with CW2 that exposing all registers my lead to unexpected errors. I was also thinking that it will be better to expose the wrapper for the timer/counter function alone. Very similar as we have managed wrappers for PWM and analog ports now. Maybe it should be Microsoft team responsibility to implement this in next release of .NET Micro Framework.
#669 How to access hardware timers/counters?
I'm afraid writing a native driver is still way out of my reach. I don't know that much about microcontrollers and was hoping that .NET MF will shield me from this ;-) Sample showing where to begin with would be great! PS: all about timers I learned here http://www.avrfreaks...ewtopic&t=50106 #650 How to access hardware timers/counters?
Hi,
I'm working on a project that will allow to control RGB LEDs using Netduino. I planned to use the TI TLC5940NT LED driver chip that has 16 channels with 12-bit PWM, and is quite popular with Arduino. Here are some resources for anyone interested: Arduino library Demystifying the TLC5940 ebook I started writing the .NET MF driver for this chip with a reference implementation as described in the above ebook. However the pure managed code is too slow to drive chip's clock signals. So the next step is to use the hardware functions. This chip uses SPI to receive the grayscale values from microcontroler, and moving this to hardware SPI was easy. However this chip also requires a clock signal for PWM outputs. Whats more the new SPI values should be latched preciesly at the end of each PWM cycle, that is every 4096 clock sygnals. Now the Arduino library uses the hardware timer counter with interrupt to achieve this. Here is the corresponding code to set this (from the "Demystifying the TLC5940" ebook): // CTC with OCR0A as TOP TCCR0A = (1 << WGM01); // clk_io/1024 (From prescaler) TCCR0B = ((1 << CS02) | (1 << CS00)); // Generate an interrupt every 4096 clock cycles OCR0A = 3; // Enable Timer/Counter0 Compare Match A interrupt TIMSK0 |= (1 << OCIE0A); Would something similar be possible on Netduino? I admit I got stuck on this so all suggestions how to best convert this to .NET MF would be welcome :-) #13595 HD44780 LCD + 74HC595 shift register wiring diagram
Great news that it works for you and nice work on documenting the diagram! Thanks, -Szymon
| ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |