Arduino Experiments

Arduino board Arduino Nano v2.3 manual (pdf) Arduino and shift register 74HC595 74HC595 Datasheet (pdf) 74HC595 Explanation Youtube tutorial with buttons: Tutorial with arduino - I was using that. My version on a breadboard: Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 //the pins we are using int latchPin = 2; int clockPin = 3; int dataPin = 4; void setup() { //set all the pins used to talk to the chip //as output pins so we can write to them pinMode(latchPin, OUTPUT); pinMode(clockPin, OUTPUT); pinMode(dataPin, OUTPUT); } void loop() { for (int i = 0; i < 16; i++) { //take the latchPin low so the LEDs don't change while we are writing data digitalWrite(latchPin, LOW); //shift out the bits shiftOut(dataPin, clockPin, MSBFIRST, i); //take the latch pin high so the pins reflect //the data we have sent digitalWrite(latchPin, HIGH); // pause before next value: delay(50); } } Alternatives More powerful shift register: TPIC6B595 PWM: TLC5940, TLC5947 PWM with i2c: PCA9685, PCA9635 PWM via shift register PWM Through a 74HC595 Shift Register at forum....

July 14, 2019 · SergeM

Motor drivers / controllers

Articles about raspberry pi: here SN74HC595 shift register. Controlling from Raspberry: here Comparison of Polou DC motor drivers Comparison of stepper motor drivers DC motors Pololu DRV8833 Dual Motor Driver Carrier exp-tech 4,95€ two DC motors or one stepper motor 2.7‌‌–10.8 V 1.2 A continuous (2 A peak) per motor Motor outputs can be paralleled to deliver 2.4 A continuous (4 A peak) to a single motor Reverse-voltage protection circuit...

April 23, 2017 · SergeM