Review by Dr Jennifer Martay
The Keyestudio car uses infrared sensors to track a line and ultrasound sensors to object track or object avoid. The car can also be controlled (forward, backward, rotate clockwise, rotate counterclockwise) using an infrared remote control or Bluetooth from a computer or app downloaded onto a phone.
Helpful hints:
Take Bluetooth sensor out of car before uploading Arduino scripts to Arduino
To use downloaded Keyes 4wd App: open Settings on phone, find Keyes 4wd robot app from Settings, click on Permission Options of App, and Enable Positioning and Nearby Devices permissions.
The provided Arduino code needs the following changes to work:
Single LED light
int LED_pin = 3; //(not 9 or 11)
Line Tracking
int L_pin = 6; //(not 11)
Suggest shortening delay from 2000 (2s) to 500 (0.5s)
Infrared Sensor
int RECV_PIN = 14; //(not 3)
Motors to drive car’s wheels
#define MR_PWM 9 //not 6
LED Board on Front of Car
unsigned char smile[] = {0x00, 0x30, 0x08, 0x04, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x04, 0x08, 0x30, 0x00};
unsigned char right[] = {0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x28,0x10,0x44,0x28,0x10,0x44,0x28,0x10,0x00}; //this originally said left
unsigned char left[] = {0x00,0x10,0x28,0x44,0x10,0x28,0x44,0x10,0x28,0x44,0x00,0x00,0x00,0x00,0x00,0x00}; //was originally right
unsigned char STOP01[] = {0x00, 0x70, 0x50, 0x7c, 0x00, 0x7c, 0x44, 0x7c, 0x00, 0x40, 0x7c, 0x40, 0x00, 0x5c, 0x54, 0x74}; //correctly says STOP
Ещё видео!