当前位置:网站首页>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 :
 Inserting a picture description here can
The receiver :

 Insert picture description here
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
 Insert picture description here

Original motor control analysis

  • Steering control motor

 Insert picture description here
 After opening
 Insert picture description here

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 ,
 Insert picture description here

lolita 8 Channel receiving control end

 Insert picture description here

Corresponding wiring sequence
 Insert picture description here

原网站

版权声明
本文为[Sharing master]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140544213444.html