1 of 25

iDronebot Build Manual

Ensure that the following items are in your kit.

1

4

2

3

7

8

5

6

9

1

2

3

4

5

6

Circuit board

Wheels

Chassis

Shield

Ultrasonic sensor

Ultrasonic sensor frame

7

8

9

Wires

Motors

Chassis

10

11

12

10

11

12

Line sensors

Nuts and screws

Ground support

2 of 25

Parts Explanation

1

2

3

4

5

6

Circuit board

Wheels

Chassis

Shield

Ultrasonic sensor

Ultrasonic sensor frame

7

8

9

Wires

Motors

Chassis

Line sensors

Nuts and screws

Ground support

10

11

12

3 of 25

Step 1: Assemble Ultrasonic Sensor

With the four prongs facing up, push the

ultrasonic sensor into the blue frame piece.

4 of 25

Step 2: Assemble Line Sensors

Press the line sensors into the frame and secure with screws and nuts. Attach the ground support to the bottom of the frame with a screw.

Top

Bottom

5 of 25

Press the motors firmly

into the chassis.

Attach the ultra sonic

component to the chassis

and secure it with a screw.

Step 3: Attach Motors and Ultra Sonic Component

6 of 25

Attach the circuit board to the chassis at these four points

1

2

3

4

You may have to wiggle or bend the board slightly to get it into place. This is okay.

Step 4: Attach Arduino Circuit Board

7 of 25

1

2

3

Step 5: Add Battery, Shield, and Wheels

Place battery on circuit board with cord facing back.

Place shield over the circuit board and press firmly to connect the pins.

Push wheels onto the spokes and secure with screws.

8 of 25

Step 6: Connect Line Sensor Wires

Out, Vcc, Gnd

Sig, 5V, Gnd

9 of 25

Vcc, Trig, Echo, Gnd

Trig, Vcc, Gnd

Echo

Step 7: Connect Ultrasonic Sensor Wires

10 of 25

Left servo motor

Right servo motor

Battery cable

Step 8: Connect Motor and Battery Wires

11 of 25

12 of 25

Connecting to iDronebot

Connect the USB Micro to the iDronebot using the USB Micro to USB Type A cord. If you use Windows OS (USB C), you will need a USB Type C to USB Type A female adaptor

Windows OS

13 of 25

iDronebot Testing

Open the _02_RC_Car.ino sketch in the CupDrone_Reo_Robot folder.

14 of 25

iDronebot Testing

Make sure you’ve selected the “Arduino Leonardo” board and the correct port. Then click the “Upload” button.

15 of 25

Open the CupDrone mobile app on your smartphone and click on the Settings gear in the top-right corner.

iDronebot Testing

16 of 25

iDronebot Testing

Click “Scan” to scan for nearby Bluetooth devices. Click on “CupDrone” to connect to your iDronebot.

17 of 25

Go back to the main menu and click the “Unlock” button at the bottom. Note: your app may look slightly different.

iDronebot Testing

18 of 25

Pitch (-250 – 250)

Roll (-250 – 250)

Center is STOP

iDronebot Testing

Use the right joystick to control your iDronebot.

19 of 25

20 of 25

Further Learning

The following slides are for more advanced learners who want to learn more about how the iDronebot works.

21 of 25

Main File: RC_Car

MSP object class creation

Direction and Speed Variable

Motor Speed Variable

Initial Function

Half of the smartphone's pitch control value is converted to forward and reverse speed and

roll control value is defined in the direction of the RC car.

The speed and direction of the RC car are determined by controlling the speed of the left and right motors, and it is made by combining the Speed ​​variable and the Dir variable.

The speed of the left and right motors obtained above is setPWM() to drive the motor.

22 of 25

Why Arduino Leonardo? Unlike other Arduino boards, Leonardo has two serial ports for USB and Bluetooth. Atmega 2560 has several serial ports, but it has a big MCU (microcontroller unit). https://docs.arduino.cc/hardware/leonardo

23 of 25

Button: A2

Button: D8

Mic: A0

Var Resistor: A3

LED Light

R: D13

G: D11

B: D10

CDS: A1

LSW RSW

Temp A5

VR A3

D2/5V/GND

D3/5V/GND

A3/5V/GND

A5/5V/GND

Sensor Shield Pinout

Light sensor: A1

Temp sensor

Motor IC

M1

PWM: D5

M1A: D4

M1B: D7

M2

PWM: D6

M1A: D9

M1B: D12

24 of 25

GND

5V

RED(D10)

D9

BUZ(D8)

D7

D6

D5

D4

D3(SCL)

D2(SDA)

GND

VCC

3.3V

BLU (D13)

D12

GRN (D11)

A5

A3

BUTTON(A2)

CDS(A1)

MIC(A0)

Bluetooth

Accelerator + Gyro

Sensor

D10

D9

D6

D5

Circuit Board Pinout

25 of 25

Further Learning

Arduino 101: 01. Arduino Hardware: https://www.youtube.com/watch?v=oiivezm6bx8

Arduino 101: 02. DigitalRead & digitalWrite: https://www.youtube.com/watch?v=8bufqdXwCpY

Arduino 101: 03. Binary Conversion: https://www.youtube.com/watch?v=2BLcqfrgVoE&t=6s

Arduino 101: 04. If Statements: https://www.youtube.com/watch?v=SKQzljqd3cQ

Arduino 101: 05. Boolean logic: https://www.youtube.com/watch?v=9G0UFQAFWUQ

Arduino 101: 06. Serial Printing: https://www.youtube.com/watch?v=RUnUaE_hoHs&t=471s

Arduino 101: 07. Analog Write: https://www.youtube.com/watch?v=JwpBn1mPGMc (Duty Cycle)

Arduino 101: 08. Analog Read: https://www.youtube.com/watch?v=eVbuRAn-pZA&t=2s

Arduino 101: 09. For loop: https://www.youtube.com/watch?v=u1riERgDYU0