当前位置:网站首页>Lori remote control LEGO motor
Lori remote control LEGO motor
2022-07-05 08:29:00 【Sharing master】
Background :
I bought a toy car made of building blocks some time ago , He was assembled in a few days during the Spring Festival , It has the function of remote control steering and forward and backward . But the battery and remote control are not easy to use , Especially batteries , Charge for two hours , Run for five minutes . It's not durable
Bring your own remote control :
The receiver :
The interfaces of building blocks are unified , The advantage of this is that it is easy to match , Complete different functions ,
The interface sequence is as follows :
1→ C1
2→ Positive pole
3→ Negative pole
4→ C2
Original motor control analysis
- Steering control motor
Four lines control , The left and right sides are vdd c1 c2 gnd, adopt 7.4v Battery powered ,c1 ,c2 Input the control signal to control the steering function .
Use arduino Control as follows :
digitalWrite(c1, HIGH);
digitalWrite(c2, LOW); // turn left
Serial.println ("H L");
delay(1000);
digitalWrite(c1, LOW);
digitalWrite(c2, LOW); // Back to normal
Serial.println ("L L");
delay(2000);
digitalWrite(c1, LOW);
digitalWrite(c2, HIGH); // turn right
Serial.println ("H L");
delay(1000);
digitalWrite(c1, LOW);
digitalWrite(c2, LOW); // t Back to normal
Serial.println ("L L");
delay(2000);
Motion motor
The four lines can be separated in the middle , It can be connected to the left and right controls ,
lolita 8 Channel receiving control end
Corresponding wiring sequence
边栏推荐
- Management and use of DokuWiki (supplementary)
- NTC thermistor application - temperature measurement
- Soem EtherCAT source code analysis I (data type definition)
- Example 005: three numbers sorting input three integers x, y, Z, please output these three numbers from small to large.
- 2020-05-21
- Charge pump boost principle - this article will give you a simple understanding
- My-basic application 2: my-basic installation and operation
- Sql Server的存储过程详解
- MHA High available Cluster for MySQL
- Stablq of linked list
猜你喜欢
实例007:copy 将一个列表的数据复制到另一个列表中。
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
[three tier architecture]
[trio basic tutorial 18 from introduction to proficiency] trio motion controller UDP fast exchange data communication
剑指 Offer 09. 用两个栈实现队列
Working principle and type selection of common mode inductor
【NOI模拟赛】汁树(树形DP)
On boost circuit
[three tier architecture and JDBC summary]
STM32 virtualization environment of QEMU
随机推荐
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
Weidongshan Internet of things learning lesson 1
MySQL MHA high availability cluster
Live555 RTSP audio and video streaming summary (II) modify RTSP server streaming URL address
Example 009: pause output for one second
剑指 Offer 05. 替换空格
Management and use of DokuWiki
Use indent to format code
On boost circuit
Stablq of linked list
Stm32--- systick timer
实例003:完全平方数 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
Five design details of linear regulator
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
Example 003: a complete square is an integer. It is a complete square after adding 100, and it is a complete square after adding 168. What is the number?
Meizu Bluetooth remote control temperature and humidity access homeassistant
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
QEMU STM32 vscode debugging environment configuration
My-basic application 2: my-basic installation and operation
Bluetooth hc-05 pairing process and precautions