View Single Post
  #2   Spotlight this post!  
Unread 19-04-2007, 19:50
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: turning inputs into outputs

Quote:
Originally Posted by Huron Warriors View Post
I believe that you did not understand us correctly. Our problem is that we only have 8 pwm outputs on the microcontroller. we would like to add 2 more motors to our system and controll them separately using other pins, like the digital/analog inputs - but we cant seem to get the motor working on these correctly. After we turn pin14 on digital inputs into an output pin, the motor randomly jerks, we guess it doesnt recieve enough voltage, but we havent tested that yet, anyways - still looking for a reply.
Oh, whoops. As you can guess, I read it as "we want to read from the analog inputs, then drive a motor with that value".

After reading innovationfirst's docs, it looks like it could be possible. In the spec sheet, they say that the analog interrupt ports CAN be used as outputs and can drive "open circuits".

I don't know enough about VEX or the PIC hardware to help beyond that. Good luck!

If I was doing the programming, I'd look at the various IFI functions that access the ADC and see if you can find some that might let you set values. The OpenADC function called from ifi_utilities.c looks hopeful.