i'm back at the keyboard, andd for the first time moving away from my beloved nano to try out the attiny 85 board (with micro usb).
Project description: A sequencing unit to receive a servo signal (pwm range 700-2300ms) from an RC receiver, and control 2 servo signals according a predetermined sequence. Servo 1 must be delayed while an electric motor is running. I will also need a "setup routine" to adjust servo 1 end positions.
Summary of inputs/outputs:
Input 1: PWM Servo signal from receiver Input 2: Voltage input from electric motor Input 3: Pushbutton "up" to change servo position during setup Input 4: Pushbutton "down" to change servo position during setup Input 5: Pushbutton "Enter" to confirm during setup Output 6: PWM Servo 1 signal Output 7: PWM Servo 1 signal
Sooo heres problem 1: i need 2 more signal than i can handle on the attiny (5 i/o pins). I was planning on handling this by splitting up the up, down and enter to different resistors on the same channel, to give 3 different voltages to 1 analogRead pin. According to the read voltage the position will be increased or decreased or confirmed.
I'm sure i will encounter other problems, but my main question is: Can i use the attiny for this?
I want to use:
Blue 4: PWM Servo input (interrupt routine?) Blue 3: Voltage read electric motor. Blue 2: Voltage read of the up/down/enter buttons. Blie 1 & 0: Servo outputs
Can i go with this setup? Where do you see problems? Restrictions?
Thanks for your thoughts