ESP8622 Motor Driver
Controll a motor using a 433mz remote
esphome:
name: table
platform: ESP8266
board: d1_mini
wifi:
ssid: Morris
password: !secret wifi_password
reboot_timeout: 0s
ap:
ssid: "Remote Node"
password: Dm.376223
captive_portal:
api:
ota:
binary_sensor:
- platform: gpio
name: End Stop Back
pin:
number: D7
mode: INPUT_PULLUP
id: end_stop_back
filters:
- invert:
- platform: gpio
name: End Stop Front
pin:
number: D6
mode: INPUT_PULLUP
id: end_stop_front
filters:
- invert:
- platform: gpio
name: Trigger
pin:
number: D5
mode: INPUT_PULLUP
id: trigger
filters:
- invert:
on_press:
- if:
condition:
- for:
time: 1s
condition:
switch.is_off: toggle_switch
then:
- switch.turn_on: motor_forward
- delay: 1s
- switch.turn_on: toggle_switch
- if:
condition:
- for:
time: 1s
condition:
switch.is_on: toggle_switch
then:
- switch.turn_on: motor_reverse
- delay: 1s
- switch.turn_off: toggle_switch
on_release:
then:
- switch.turn_off: motor_forward
- switch.turn_off: motor_reverse
switch:
- platform: template
id: toggle_switch
optimistic: True
restore_state: true
name: toggleleee
- platform: gpio
pin: D1
inverted: no
name: Motor Forward
id: motor_forward
interlock: [motor_reverse]
interlock_wait_time: 500ms
###################################################
- platform: gpio
name: Motor Backward
pin: D2
inverted: no
id: motor_reverse
interlock: [motor_forward]
interlock_wait_time: 500ms
- platform: gpio
pin: D3
inverted: no
id: learn
button:
- platform: template
name: RF Clear Remote
icon: "mdi:remote-off"
on_press:
- script.execute: code_clear
###################################################
###### Working ####################################
- platform: template
name: RF Learn Remote
icon: "mdi:remote"
on_press:
- switch.turn_on: learn
- delay: 500ms
- switch.turn_off: learn
script:
- id: code_clear
mode: restart
then:
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- delay: 100ms
- switch.turn_on: learn
- delay: 100ms
- switch.turn_off: learn
- switch.turn_off: learn
ESP8622 Motor Driver
Project images are for reference only. Actual production is based on the manufacturing files on the project page.
Please review the designer's notes (e.g., PCB thickness) and select the appropriate options.
PCBWay is not responsible
for issues caused by unsuitable parameter selections.
For more important ordering information, please refer to
Read More
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(1)
-
serg-a72
Aug 03,2023
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by David Morris
-
-
-
Émetteur Récepteur Optique Expérimental (communication UART ATtiny + fibre optique)
238 0 1 -
SmallOLED - Live PC Stats, Animated Clocks & Audio Visualizer
1149 0 3 -
"Talking Multimeter": Arduino-Based Speech Add-on for Multimeters with SCPI Protocol
666 0 1 -
Programmable Mist Maker - XIAO / QT PY Extension
3138 2 4 -
RadioHAT - Raspberry Pi radio development platform
2680 0 4 -
QWIIC-VL53L4CD Time-of-Flight Distance Sensor Module
2919 0 2 -







