From: mike2323 <mmi...@gm...> - 2009-07-30 15:57:24
|
Dave Hylands wrote: > > Hi Mike, > >> I am a software guy, but I am working on a project that involves a >> robostix. >> The problem I'm having is that when I connect G and V with an LED on any >> of >> the port c outputs, it's dim. I only get 1.5 volts and .05mA. Without >> the >> LED, I'm getting 4.959 volts. Is there something that I can do to get >> more >> watts on the pin? > > Do you have a current limiting resistor on the pin? > No > > Are you powering the robostix? (i.e. providing power to the power jack > on the robostix board itself)? > Yes > > Did you configure the port as an output? By default they're all inputs. > I thinks so. i2c-io 0x0b getdir c.0 returns out > > If you just wrote to the PORTC register to set the value, then all > you've done is to enable the weak internal pullup resistor, which > would explain the dim LED. > > You also need to write to the DDRC register to configure each pin as > an input or output. 0 = input, 1 = output. > How would I do this? > > -- > Dave Hylands > Shuswap, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/Low-watts-on-robostix-port-c-tp24737936p24741357.html Sent from the Gumstix mailing list archive at Nabble.com. |