![]() |
Re: encoders
is that already in the default routine, because our compressor doesn't automatically turn itself on. plus, if you read my above post, are you sure the default settings work with the way my bot is configured? thank you.
|
Re: encoders
I have some vague recollection that you may not pass inspection if you do not have the pressure limit switch controlling the compressor.
Last year we were overweight and removed our compressor, opting instead to charge the air tanks before each match. |
Re: encoders
Sorry if this is a bit off topic.
I was looking through the encoder the Mr.Kevin provides on his website. I did not find the model of the encoder he was using, i am currently wanting to use optical encoder from digikey there a lot of them available. I am trying to decide which one to buy and will the optical encoder just tick when the dark area changed to light? Thank you in advance |
Re: encoders
Quote:
-Tony K |
Re: encoders
Quote:
and 61K128 quadrature output optical encoders. Data sheets for these devices are included." -Kevin |
Re: encoders
As Anthony points out. If you have power to burn, leave the compressor in full auto, if, on the other hand, you want manual control (for any one of a number of reasons) I think that the wheel is a good choice, as it is convienient, and hard to press by accident.
|
Re: encoders
Quote:
|
Re: encoders
Quote:
Code:
int tempEncoder; |
Re: encoders
Quote:
is it in that? that would be hard to trace, because it prints out hundreds of lines, and there isn't a way to print or save it to a file for viewing. guess I can search it. thanks! also, I don't know if it matters, but what are the three "..." periods for after the previous static encoder. |
Re: encoders
also, it says there's an error on this line when I put it in user routines fast.
int tempEncoder; what's up with that? |
Re: encoders
Quote:
Quote:
Quote:
Quote:
Leave out the ellipsis (the "..."), and then put the rest of the code just before the arm control code. |
Re: encoders
the encoder is working!!! thanks for the help in this thread. I'm still looking at our compressor, though it's not a pain to enable, just that they have it wired oddly. thanks again!
|
Re: encoders
Quote:
Earlier, you said Quote:
The default code expects the compressor to be on relay 8, and the pressure switch on digital 18. If you hook up your compressor and pressure switch this way, you're golden. These lines in Default_Routine() in user_routines.c will take care of the compressor: Code:
relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */BTW, I think that last year, the ruling was made that even if you want to use the pressure transducer, you still have to have the digital pressure switch. If this is the case (and you still want to leave your compressor on relay 17), you will need to change the line in Default_Routine() to Code:
relay17_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */ |
Re: encoders
On getting the Phase A/ Phase B hookup on the encoder. Do i need to splice the wires. Do i have just one pwm for each encoder or two? Please Help....
|
Re: encoders
Quote:
If you're using interrupts, you're pretty much required to use the first two digital inputs for the "A" phase outputs of two encoders, with the "B" phase outputs on two other digital inputs. |
| All times are GMT -5. The time now is 22:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi