David Morris
UNITED STATES OF AMERICA • + Follow
Edit Project
Description
ESP8622 Motor Driver
Controll a motor using a 433mz remote
Code
Yaml
YAML
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
Jun 10,2023
408 views
ESP8622 Motor Driver
Remote Motor Driver ESP8622 ESPHome
408
1
0
Published: Jun 10,2023
Download Gerber file 8
BOM(Bill of materials)
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
File Last Updated: 2023/06/14 (GMT+8)
File update record
2023-06-1409:45:23
Parts List (BOM) is updated.
Only PCB
PCB+Assembly
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.
Topic
- Comments(0)
- Likes(1)
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
Remove
It looks like you have not written anything. Please add a comment and try again.
View More
- serg-a72 Aug 03,2023
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by David Morris
You may also like
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
82 1 1 -
-
-
-
Sega Master System RGB Encoder Switcher Z80 QSB v1.2
71 0 0 -
18650 2S2P Battery Charger, Protection and 5V Output Board
107 0 0 -
High Precision Thermal Imager + Infrared Thermometer | OpenTemp
531 0 7 -
Sony PlayStation Multi Output Frequency Oscillator (MOFO) v1
148 0 2 -