The reason for this post is only to share some arduino sample code of mine. In this case we are speaking of a BTS7960 motor driver controlled by Arduino and a modification for a previous project of mine, the big 7 segment display. This modification consist in I2C comunication betwen the display and arduino.

Used products:

43A motor driver

arduino pro mini

7 segment display

BTS7960

BTS7960

Pinning:

BTS7960 Arduino
RPWM 5
LPWM 6
L_EN 7
R_EN 8
VCC +5V
GND GND
KNOB   A0
BUTTON   10

 

Code:

I2C -7 segment display

I2C 7 segment

Pinning:

7 segments Arduino
D1 4
D2 3
D3 2
D4 5
D11 (data) 11
D8(clock) 8
D12(latch) 12
+5V +5V
GND GND
+12V +12V

I2C comunication is made on Arduino pin A4 and A5.

Code:

Slave

 Master:

 

Arduino sample code: BTS7960 [43A motor driver] and I2C 7 segment display
Etichetat pe:            

3 gânduri despre „Arduino sample code: BTS7960 [43A motor driver] and I2C 7 segment display

Lasă un răspuns

Adresa ta de email nu va fi publicată. Câmpurile obligatorii sunt marcate cu *

Acest sit folosește Akismet pentru a reduce spamul. Află cum sunt procesate datele comentariilor tale.