Search Code

Lesson 23/31: Smart Car Part 1: SunFounder Smart Car Assembly and DC Motor Full Bridge Explained

Lesson 23/31: Smart Car Part 1: SunFounder Smart Car Assembly and DC Motor Full Bridge Explained

Steps

Please follow the steps below to complete the assembly of the car. You can download the PDF manual from the files list below this article. 

  1. Remove the protective film on the acrylic.

smatcar_assembly-1

2-Place the board on the table as shown in the picture, the side with the same hole as the R3 board, we call A; the back is B. This will help you avoid mistakes during assembly.

smatcar_assembly-2

3-Mount the M3x24mm standoff with M3x6mm screws in the position as shown below.

smatcar_assembly-3

4-Turn to the B side, use M3x30mm screws and M3 nuts to attach the TT Motor. 2 details here: 1 - the output shaft is facing the bat-shaped side; 2 - the motor cable is facing the inside.

smatcar_assembly-4

 

5-Mount another TT Motor, the same attention needs to be paid to the direction of the output shaft and the direction of the cable.

smatcar_assembly-5

 

6-Use M3x6mm screws to mount the M3x12mm standoff in the position as shown below.

smatcar_assembly-4

 

7-Attach the M2.5x11mm standoff to the rear of the car with M2.5x6mm screws.

smatcar_assembly-7

 

8-Use M3x6mm screws to mount the universal wheel.

smatcar_assembly-8

 

9-Putting on the 2 wheels and the car’s basic structure has been completed.

smatcar_assembly-9

 

10-Attach the L9110 module with M2.5x6mm screws.

smatcar_assembly-10

 

11-Assemble the two IR Obstacle Modules with M3x12mm screws and M3 nuts.

smatcar_assembly-11

 

Turn to side B

Note

It’s advisable to first secure the M3x24mm standoffs onto the Line Track module.

One important note to keep in mind: the pins of the line sensor are slightly soft and protrude a bit towards the holes. When screwing in the M3x24mm standoffs, apply gentle pressure to push aside the sensor pins slightly.

12-Turn to side B and attach the Line Track module with four M3x6mm screws and two M3x24mm standoffs.

smatcar_assembly-b-1

13-Stick the velcro on the 9V battery and put on the battery clip. Stick the other section of the Velcro on the car to secure the battery.

smatcar_assembly-b-2

14-Turn over to side A and mount the R3 board with M3x6mm screws.

smatcar_assembly-b-3

15-Attach the breadboard to the front of the car. Thereafter, you will be able to add different components (e.g. ultrasonic module) to the breadboard as required for your project.

smatcar_assembly-b-4

16-Getting the car running also requires wiring it up and writing code, which will be written in subsequent sections.

Fully assembled car looks like this:

sunfounde_car_assembled

You can download the PDF manual from the files list below this article. 

Images

Sunfounder car assembled
Sunfounder car assembled
Smartcar assembly 1
Smartcar assembly 1
Smartcar assembly 2
Smartcar assembly 2
Smartcar assembly 3
Smartcar assembly 3
Smart car assembly 4
Smart car assembly 4
Smart car assembly 5
Smart car assembly 5
Smart car assembly 6
Smart car assembly 6
Smart car assembly 7
Smart car assembly 7
Smart car assembly 8
Smart car assembly 8
Smart car assembly 9
Smart car assembly 9
Smart car assembly 10
Smart car assembly 10
Smart car assembly 11
Smart car assembly 11
Smart car assembly B 1
Smart car assembly B 1
Smart car assembly B 2
Smart car assembly B 2
Smart car assembly B 3
Smart car assembly B 3
Smart car assembly B 4
Smart car assembly B 4
902-Lesson 23/31: Arduino code Using Seven Segment Display
Language: C++
/*
Lesson 23/31: Using Seven Segment Display 
Get this code and watch video Download and resource page https://robojax.com/RJT605
YouTube video https://www.youtube.com/watch?v=3qoGAYh0lbc

*/
const int STcp = 12;//Pin connected to ST_CP of 74HC595
const int SHcp = 8;//Pin connected to SH_CP of 74HC595 
const int DS = 11; //Pin connected to DS of 74HC595 

int datArray[] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};

void setup ()
{
  //set pins to output
  pinMode(STcp,OUTPUT);
  pinMode(SHcp,OUTPUT);
  pinMode(DS,OUTPUT);
}
void loop()
{
  for(int num = 0; num <10; num++)
  {
    digitalWrite(STcp,LOW); //ground ST_CP and hold low for as long as you are transmitting
    shiftOut(DS,SHcp,MSBFIRST,datArray[num]);
    digitalWrite(STcp,HIGH); //pull the ST_CPST_CP to save the data
    delay(1000);
  }
}

Resources & references

Files📁

Arduino Libraries (zip)

User’s Manual