Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attiny85 pins #41

Open
pbbob opened this issue Jan 2, 2018 · 10 comments
Open

attiny85 pins #41

pbbob opened this issue Jan 2, 2018 · 10 comments

Comments

@pbbob
Copy link

pbbob commented Jan 2, 2018

does motorpwm1 and 2 go to the h bridge? also, how do i get the P, I, and D values for tuning? why are there 2 encoders(a and b)?

@misan
Copy link
Owner

misan commented Jan 2, 2018

OPTION 1: Motor pwm1 and pwm2 go to In1 and in2 signals of an h-bridge (which is supposed to be enabled).

OPTION 2: Alternately, you could use in1/in2 pins for direction and a single PWM signal on the enable pin.


  1. P,I and D values can be set in the firmware initialization.
  2. PID values can be queried and modified using the serial port and even stored in the EEPROM.
  3. If valid PID values are found stored in the EEPROM, then these would be used instead of the firmware ones.

Encoders have two signals so not only steps can be measured (angle) but also the direction of it (sign).

@pbbob
Copy link
Author

pbbob commented Jan 4, 2018

should there be a resistor somewhere beween the encoder pins and the attiny85?

@sanchosk
Copy link
Contributor

sanchosk commented Jan 4, 2018 via email

@sanchosk
Copy link
Contributor

sanchosk commented Jan 4, 2018 via email

@pbbob
Copy link
Author

pbbob commented Jan 4, 2018

what is the best h bridge to use, and also, where can i find a good tutorial on how to use h bridges/how they work?

@pbbob
Copy link
Author

pbbob commented Jan 4, 2018

@misan "Encoders have two signals so not only steps can be measured (angle) but also the direction of it (sign)"
when connecting encoder a and encoder b to the attiny(or arduino)am i correct that it doesnt matter which encoder is connected to atttiny 3 - encoder A and attiny 4 - encoder B?

@misan
Copy link
Owner

misan commented Jan 4, 2018 via email

@misan
Copy link
Owner

misan commented Jan 4, 2018 via email

@pbbob
Copy link
Author

pbbob commented Jan 4, 2018

@misan so it is okay, or not okay for the dc motor power wires and the encoder ab wires to be inverted?

@misan
Copy link
Owner

misan commented Jan 4, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants