- Netduino Forums
- → Viewing Profile: Topics: Omar (OZ)
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.
Community Stats
- Group Members
- Active Posts 564
- Profile Views 24141
- Member Title Advanced Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Male
18
Good
User Tools
Topics I've Started
Seven Segment Display Demos
28 July 2012 - 03:51 AM
First the odd public embarrassment... Matt did an awesome job with this module! Both the hardware and drivers are very very nice.
Edit: I will add videos as I make more, to avoid spamming the forum with random little videos subscribe on youtube to catch them all!
Code -
ComboLock.zip 119.74KB
16 downloads
Code - http://sdrv.ms/MUeRa3
Let me know if i can clear something up, I'd be happy to help.
Custom PC Case Lighting
11 June 2012 - 10:03 PM
I finally got around to making something with my mini that has a somewhat permanent use. Check out the video first to see its beauty
Some notes:
The RGB LED strip is common anode, so if your strip is common cathode make sure you change the wiring to account for that. The code as well, because the lights are on when the signal is LOW the lights in code are on when they duty cycle is 0. If your lights are common cathode you'll have to keep that in mind.
The chips I used are the MAXIM MAX4420, they are High-Speed 6A single MOSFET drivers. Note they 'single', you'll need one per color or for each section you want to control individually.
Pretty picture time!
case lighting breadboard.jpg 1.87MB 45 downloads
case lighting breadboard layout.JPG 81.06KB 50 downloads
breadboard in case.jpg 1.32MB 30 downloads
Some notes:
The RGB LED strip is common anode, so if your strip is common cathode make sure you change the wiring to account for that. The code as well, because the lights are on when the signal is LOW the lights in code are on when they duty cycle is 0. If your lights are common cathode you'll have to keep that in mind.
The chips I used are the MAXIM MAX4420, they are High-Speed 6A single MOSFET drivers. Note they 'single', you'll need one per color or for each section you want to control individually.
Pretty picture time!
case lighting breadboard.jpg 1.87MB 45 downloads
case lighting breadboard layout.JPG 81.06KB 50 downloads
breadboard in case.jpg 1.32MB 30 downloads
public static void Main() { PWM red, green, blue; red = new PWM(Pins.GPIO_PIN_17); green = new PWM(Pins.GPIO_PIN_18); blue = new PWM(Pins.GPIO_PIN_19); red.SetDutyCycle(100); green.SetDutyCycle(100); blue.SetDutyCycle(100); while (true) { for (uint r = 100; r > 0; r -= 5, Thread.Sleep(50)) red.SetDutyCycle(r); for (uint b = 0; b < 100; b += 5, Thread.Sleep(50)) blue.SetDutyCycle(B); for (uint g = 100; g > 0; g -= 5, Thread.Sleep(50)) green.SetDutyCycle(g); for (uint r = 0; r < 100; r += 5, Thread.Sleep(50)) red.SetDutyCycle(r); for (uint b = 100; b > 0; b -= 5, Thread.Sleep(50)) blue.SetDutyCycle(B); for (uint g = 0; g < 100; g += 5, Thread.Sleep(50)) green.SetDutyCycle(g); } }
Netduino GO! New Video Series
06 April 2012 - 04:35 AM
I promise I am not a zombie, I've been alive all along! Older members here might already know me, but for the new people (many of which I have yet to 'meet'): I am Omar, a curious teenage programmer, and I am back to making netduino videos! Hopefully on a regular basis again
Here it is, the first of many to come:
Netduino USB HID Touch Screen Keyboard
20 August 2011 - 07:20 PM
This is a touch screen keyboard with most keys found on a regular keyboard. It is a USB touch screen keyboard powered by 4DGL code, .netmf USB HID code (uses my USB HID Keyboard class). This runs on the 32PT touch screen from 4D Systems, and a netduino.
You can use the keyboard class without the screen.
Netduino Touch Keyboard.zip 165.82KB
211 downloads
Here is the screen's code:
screen 4DGL code.txt 8.84KB
69 downloads
Let me know if you find bugs.
Netduino USB HID Keyboard - Updated code
04 August 2011 - 09:04 AM
Here is a quick video of it in action.
This will make the netduino a USB HID, so the netduino will simulate a keyboard in this case.
To get your netduino ready for this:
1 Install firmware 4.1.1 http://forums.netdui...re-v411-beta-1/
2. Transfer to Serial deployment http://forums.netdui...b-and-com1com2/
3. Create a project and put the class in it, add the test code to your program's main method
4. Hook up a usb to serial like this: http://www.sparkfun.com/products/9873 to your netduino's com1 or 2, which ever you chose while setting serial deployment
5. Change deployment in VS to Serial, select your com port
6. Power your netduino with a 9V battery or whatever, except usb. Deploy.
7. You need the code to run and set up the usb stream first, then connect your usb cable.
Class: Keyboard.cs 16.63KB 241 downloads
Add a reference to:
Microsoft.SPOT.Hardware.Usb
Sample use. As in the video.
Projects using the netduino as a keyboard coming sometime soon. I want to make a mouse class next.
I found this:
/* Custom USB HID Communication Device
* Copyright © Secret Labs LLC. All Rights Reserved.
*
*
* Licensed under the Apache 2.0 open source license
*/
in the original code from the USB HID example. I added that I expanded it. I am not big on licenses, but I think I must add it to my code as well. License info here: http://www.apache.or...ICENSE-2.0.html
This will make the netduino a USB HID, so the netduino will simulate a keyboard in this case.
To get your netduino ready for this:
1 Install firmware 4.1.1 http://forums.netdui...re-v411-beta-1/
2. Transfer to Serial deployment http://forums.netdui...b-and-com1com2/
3. Create a project and put the class in it, add the test code to your program's main method
4. Hook up a usb to serial like this: http://www.sparkfun.com/products/9873 to your netduino's com1 or 2, which ever you chose while setting serial deployment
5. Change deployment in VS to Serial, select your com port
6. Power your netduino with a 9V battery or whatever, except usb. Deploy.
7. You need the code to run and set up the usb stream first, then connect your usb cable.
Class: Keyboard.cs 16.63KB 241 downloads
Add a reference to:
Microsoft.SPOT.Hardware.Usb
Sample use. As in the video.
string setupResult = Keyboard.SetUp(); Debug.Print(setupResult); if (setupResult != "Success") return; while (true) { led.Write(true); if (button.Read()) Keyboard.SendString("/*\n" + "* Supported Characters (with this method):\n" + "* abcdefghijklmnopqrstuvwxyz\n" + "* ABCDEFGHIJKLMNOPQRSTUVWXYZ\n" + "* 0123456789\n" + "* enter escape backspace deletethis\b\b\b\b\b\b\b\b\b\b \ttab space\n" + "* - = [ { ] } \\ | , > . < / ? ! @ # $ % ^ & * ( )\n" + "*/"); led.Write(false); Thread.Sleep(2000); }
Projects using the netduino as a keyboard coming sometime soon. I want to make a mouse class next.
I found this:
/* Custom USB HID Communication Device
* Copyright © Secret Labs LLC. All Rights Reserved.
*
*
* Licensed under the Apache 2.0 open source license
*/
in the original code from the USB HID example. I added that I expanded it. I am not big on licenses, but I think I must add it to my code as well. License info here: http://www.apache.or...ICENSE-2.0.html
- Netduino Forums
- → Viewing Profile: Topics: Omar (OZ)
- Privacy Policy