当前位置:网站首页>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 
边栏推荐
- 实例002:“个税计算” 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.
- Void* C is a carrier for realizing polymorphism
- 实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
- Live555 push RTSP audio and video stream summary (III) flower screen problem caused by pushing H264 real-time stream
- Shell script
- 实例006:斐波那契数列
- MATLAB小技巧(28)模糊綜合評價
- 每日一题——输入一个日期,输出它是该年的第几天
- 亿学学堂给的证券账户安不安全?哪里可以开户
- 实例007:copy 将一个列表的数据复制到另一个列表中。
猜你喜欢

Shell script
![[trio basic tutorial 17 from getting started to mastering] set up and connect the trio motion controller and input the activation code](/img/58/576b6b77509ed7a9bef138f3899e37.jpg)
[trio basic tutorial 17 from getting started to mastering] set up and connect the trio motion controller and input the activation code

Management and use of DokuWiki (supplementary)

Soem EtherCAT source code analysis attachment 1 (establishment of communication operation environment)

Example 009: pause output for one second

剑指 Offer 09. 用两个栈实现队列

MySQL之MHA高可用集群
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?

Classic application of MOS transistor circuit design (1) -iic bidirectional level shift

Semiconductor devices (III) FET
随机推荐
STM32 single chip microcomputer -- debug in keil5 cannot enter the main function
Briefly talk about the identification protocol of mobile port -bc1.2
实例009:暂停一秒输出
STM32 single chip microcomputer -- volatile keyword
2022.7.4-----leetcode. one thousand and two hundred
QEMU STM32 vscode debugging environment configuration
[three tier architecture and JDBC summary]
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
Explain task scheduling based on Cortex-M3 in detail (Part 1)
DokuWiki deployment notes
Affected tree (tree DP)
Brief discussion on Buck buck circuit
How to write cover letter?
Anonymous structure in C language
2022.7.4-----leetcode.1200
Solutions to compilation warnings in Quartus II
STM32 summary (HAL Library) - DHT11 temperature sensor (intelligent safety assisted driving system)
Semiconductor devices (I) PN junction
STM32---ADC
STM32 tutorial triple ADC interleaved sampling