View Single Post
  #3   Spotlight this post!  
Unread 08-03-2003, 00:20
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
now correct me if im wrong but..

It won't work the way you have it connected.

I believe that the only items you are allowed to connect to the analog ports are the pots and other analog related stuff, all other items requiring power must be hooked up into the main circuit breakers. For 5V power, what you need to do is get a 7805 voltage regulator and connect:

pin1: 12V (to fuse)
pin2: GND (to ground)
pin3: 5V (to the 5V power on encoder)

With the power connected as explained above, the encoder *should* function properly.. and really this is something for the electrical forums anyway..
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net