Project tutorial by ambhatt
Arduino varies speed of DC Motor using PWM and measures its RPM using optical sensor and displays them on LCD
The arduino is used to indicate the door/drawer/locker is properly locked or not
On this sample I would like to explain why PID-control should be used for speed controls and how the direction can be inverted.
Project tutorial by tolgadurudogan
there are direct library functions given to rotate motor forward and reverse
also you can control speed of motor
yes. but you have to give input in decimal numbers like
as you want for
11100000 you have to send 224
01110000 you have to send 112
and like wise
you can make array of these values and sent them to any port pins
thanks for your comments.
I am already aware of AVR IO port manipulation with DDR/PIN/PORT because I have been working on AVR Attiny/ATMega/XMega since 8 years.
the library is given to combine any 8 IO pins of arduino to work as a port.
using this library it will be easier to write a program for different peripheral/IO devices like 8-bit DAC, DIP switches, 7-segment display, LED bargraph display and many more. I know that this may take more time in execution but all such IO devices are much slower as compared to speed of arduino.
so the beginners who are just aware of digitalWrite()/digitalRead() functions of arduino that works on 1 pin input/output, can use this library to send/get 8-bit digital input/output
Or connect with your social account:
New here? Create an account