Car Game
Print Profile(1)

Description
this model is a school project I made. I have found many mess up in the design and I fixed it. I thought I could share this and make something out of it.
Part needed
- Amazon.com: DEYUE breadboard Set Prototype Board - 6 PCS 400 Pin Solderless Board Kit for Raspberry pi and Arduino Project: Electronics
- Amazon.com: Gerritsen DC 12V 100RPM Gear Motor High Torque Electric Micro Speed Reduction Geared Motor Centric Output Shaft 37mm Diameter Gearbox: Toys & Games
- Amazon.com: ELEGOO UNO R3 Board ATmega328P with USB Cable(Arduino-Compatible) for Arduino : Electronics
- Amazon.com: Hosyond 3pcs I2C IIC 1602 LCD Display Module 16x02 LCD Screen Module for Arduino Raspberry Pi
for the motor you may need a solder kit or if you find another way.
you will need code for the Arduino so down lode a software called Arduino IDE. and the code is under if you find something already there just delete it then
int IN1pin = 8;
int IN2pin = 7;
int ENApin = 9;
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);
void setup() {
// put your setup code here, to run once:
// LCD setup
lcd.init(); // initialize the lcd
lcd.init();
lcd.backlight();
lcd.setCursor(4,0);
lcd.print("READY");
delay(2000);
lcd.clear();
lcd.setCursor(4,0);
lcd.print("SET!");
delay(2000);
lcd.clear();
lcd.setCursor(4, 0);
lcd.print("GO!!!");
// Motor setup
pinMode(IN1pin, OUTPUT);
pinMode(IN2pin, OUTPUT);
pinMode(ENApin, OUTPUT);
delay(2000); // give time to see "GO"
// Start motor
digitalWrite(IN1pin, LOW);
digitalWrite(IN2pin, HIGH);
analogWrite(ENApin, 100);
delay(30000);
digitalWrite(IN1pin, LOW);
digitalWrite(IN2pin, LOW);
}
void loop() {
// put your main code here, to run repeatedly:
}
a video for the correct wiring
License
You shall not share, sub-license, sell, rent, host, transfer, or distribute in any way the digital or 3D printed versions of this object, nor any other derivative work of this object in its digital or physical format (including - but not limited to - remixes of this object, and hosting on other digital platforms). The objects may not be used without permission in any way whatsoever in which you charge money, or collect fees.












Comment & Rating (0)