当前位置:网站首页>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
边栏推荐
- Live555 push RTSP audio and video stream summary (III) flower screen problem caused by pushing H264 real-time stream
- PIP installation
- STM32 tutorial triple ADC interleaved sampling
- Bluebridge cup internet of things competition basic graphic tutorial - clock selection
- Live555 push RTSP audio and video stream summary (I) cross compilation
- 实例007:copy 将一个列表的数据复制到另一个列表中。
- 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?
- 【NOI模拟赛】汁树(树形DP)
- 2020-05-21
- Live555 RTSP audio and video streaming summary (II) modify RTSP server streaming URL address
猜你喜欢
Installation and use of libjpeg and ligpng
FIO测试硬盘性能参数和实例详细总结(附源码)
Semiconductor devices (III) FET
Arduino uses nrf24l01+ communication
Circleq of linked list
Explain task scheduling based on Cortex-M3 in detail (Part 1)
[nas1] (2021cvpr) attentivenas: improving neural architecture search via attentive sampling (unfinished)
List of linked lists
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
How to write cover letter?
随机推荐
Working principle and type selection of common mode inductor
Let's briefly talk about the chips commonly used in mobile phones - OVP chips
[three tier architecture and JDBC summary]
[cloud native | learn kubernetes from scratch] III. kubernetes cluster management tool kubectl
Ble encryption details
Talk about the circuit use of TVs tube
WiFi wpa_ Detailed description of supplicant hostpad interface
Briefly talk about the identification protocol of mobile port -bc1.2
STM32 outputs 1PPS with adjustable phase
Example 001: the number combination has four numbers: 1, 2, 3, 4. How many three digits can be formed that are different from each other and have no duplicate numbers? How many are each?
Example 007: copy data from one list to another list.
Why is 1900 not a leap year
[trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
Semiconductor devices (III) FET
Explain task scheduling based on Cortex-M3 in detail (Part 2)
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
STM32 single chip microcomputer -- debug in keil5 cannot enter the main function
[trio basic from introduction to mastery tutorial 20] trio calculates the arc center and radius through three points of spatial arc
Arduino+a4988 control stepper motor
Take you to understand the working principle of lithium battery protection board