MARIO KART : 5 Steps - mcdanielhilen1975
Initiation: MARIO KART
The subjects of Implemental laboratory for mechatronics and electronics laboratory, are both subjects designed for learning about how to oeuvre with the control of electrical energy, producing real work Oregon signals through the use of concepts previously seen in other subjects. The mario kart repugn is a project for students to produce abilities such as teamwork, programming skills, design and boosting the creativity of each participant to make the most functional railcar for motion, power (in the weapon) and esthetic design. The competitor takes shoes inside the installations of ITESM Chihuahua. The institution volition provide the students all the material necessary, but they are free to add stuff to make a better functioning.
Step 1: General Explanation of the Imag
Mario kart is a figure designed to develop certain abilities for the students to learn about electronics, implementing a micro control arduino. The competition is basically cars organized aside the students, the cars must own a weapon to burst balloons, each car has three balloons and the ultimate subsister leave win.
Two subjects are enclosed connected the competition, Instrumental laboratory of mechatronics and laboratory of electronics, students of both groups will competitiveness to follow the best in the mario kart contest.
It took place during the maker's fest of the ITESM CUU in the semester Agu-Dec 2022.
Each railcar must have a weapon and three balloons, as before long as all the balloons in your car are busted , you will be out of the competition, the last matchless slack will be the winner of the contest. The control of the machine must be radiocommunication, through a cellphone, computer surgery any other twist subject of sending signals to the arduino shield controlling motor.
Step 2: Materials
Arduino UNO. Is an open-source prototyping political program supported easy-to-use hardware and software. Arduino provides an open-source and easy-to-use of goods and services programming tool, for writing encode and uploading it to your board.
Engaged motors. It is a shafted 5 cm long causative, with an input of 12 volts and a maximum output power of 1.55 watts a weight of 65 grams and a maximum torque of 0.071 Nm.
Adafruit motor shield for the arduino. Is the shield accustomed control the motors. Instead of victimisation a latch and the Arduino's PWM pins, we have a fully-consecrated PWM driver chip aboard. This chip handles all the motor and speed controls terminated I2C
SparkFun bluetooth mate silver. The Bluetooth Mate is very alike to our BlueSMiRF modem, merely IT is designed specifically to cost used with our Arduino Prosand LilyPad Arduinos. These modems work As a serial (RX/Texas) pipe, and are a great radio set substitute for serial cables. Some serial teem from 2400 to 115200bps can exist passed seamlessly from your calculator to your target.
Bluetooth module HC-06. As a slave module is a simple and utilizable for small projects in which you look up to an unhurried communication between your mobile phone and the Arduino or other micro controllers.
Reversible 12v battery. This energy source is used to feed the motors, the arduino and the bluetooth module, while using 4 more 1.5v bateries to feed the weapon system.
Weapon. It is basically a heat resistance, through a cable, we heat up a wire that is situated happening the march of the Natalie Wood sticks.
Equipment.
Laser cutting machine
Cautin weller
Lap top
Software.
AutoCad
Corel Draw
Step 3: Innovation and Assembling
For the design we used the AutoCad available on the computer science center, the design was a simple classic square up shaped railcar, with 4 columns that gimbaled the roof of the car. We drew the physical body, which consists in one backside objet d'art, 3 walls and one roof, we left one empty side to manipulate the arduino inside of the car. The printing of the parts was made in the optical maser cutting automobile available in the laboratory.
To exportation the file from the autocad to a usb port, the formatting of the drawing must Be in a Corel Draw format so the laser lancinating machine could translate it and expel it.
The assembling consisted happening gluing totally the parts that we drew on the software, also we glued the motors to the chassis and through a hole in the middle of the bottom part, we passed the wires connected to the motors.
The weapon and balloons were situated along top of the roof unmatched ahead of the other severally.
The design of the weapon was changed in multiple occasions, just the terminal design was made with two woody sticks separated by 3 cms and a wire along the sticks and a cable enrolled in two screws located on the edge, the cable will screw up and burst the balloons.
The weapon was fed with 4 batteries of 1.5 volts each and serially connected.
To send the signal, we utilised an android system phone, we made the interface to put across the cellphone with the bluetooth module and charg the information to the arduino board so through the output, send the current required for the motors to work.
Step 4: Code
The code that we used was in C language in the arduino's information processing system program. The lines of the encipher were the following:
#include
#include #include "utility/Adafruit_MS_PWMServoDriver.h" #include int bluetoothTx = 51; // TX-O pin of bluetooth twin, Arduino D2 int bluetoothRx = 50; // RX-I pin of bluetooth mate, Arduino D3 int i, ia, vDI,vDD, vTI, vTD, DI, DD ; SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); Adafruit_MotorShield AFMS = Adafruit_MotorShield(); Adafruit_DCMotor *MotorDI = AFMS.getMotor(1); Adafruit_DCMotor *MotorDD = AFMS.getMotor(2); Adafruit_DCMotor *MotorTI = AFMS.getMotor(3); Adafruit_DCMotor *MotorTD = AFMS.getMotor(4); empty frame-up() { Serial.begin(9600); // Begin the serial monitor lizard at 9600bps bluetooth.begin(115200); // The Bluetooth Better half defaults to 115200bps bluetooth.impress("$"); // Print threefold individually bluetooth.print("$"); bluetooth.impress("$"); // Enter command mode delay(100); // Abbreviated delay, delay for the Mate to remand CMD bluetooth.println("U,9600,N"); // Temporarily Change the baudrate to 9600, no more parity // 115200 rear end be besides fast at times for NewSoftSerial to relay the information reliably bluetooth.begin(9600); // Start bluetooth serial at 9600 AFMS.begin(); MotorDI->setSpeed(150); MotorDI->rill(FORWARD); MotorDI->run(RELEASE); MotorDD->setSpeed(150); MotorDD->run(FORWARD); MotorDD->run(RELEASE); MotorTI->setSpeed(150); MotorTI->run(FORWARD); MotorTI->run(RELEASE); MotorTD->setSpeed(150); MotorTD->run(FORWARD); MotorTD->streamlet(RELEASE); } void loop() { if(bluetooth.available()) // If the bluetooth sent whatever characters { i = bluetooth.read(); } if(Serial.uncommitted()) // If stuff was typed in the serial monitor { // Send whatsoever characters the Serial monitor prints to the bluetooth bluetooth.photographic print((blacken)Sequent.read()); } if( Iowa!= i) { switch (i) { case 119: bluetooth.println("w"); vDI = 250; vDD = 250; vTI = 250; vTD = 250; DI = 1; DD = 1; break; guinea pig 101: bluetooth.println("e"); vDI = 220; vDD = 50; vTI = 220; vTD = 50; DI = 1; Doctor of Divinity = 1; split up; case 100: bluetooth.println("d"); vDI = 250; vDD = 250; vTI = 250; vTD = 250; DI = 1; DD = 2; break; case 115: bluetooth.println("s"); vDI = 0; vDD = 0; vTI = 0; vTD = 0; DI = 1; DD = 1; break; case 97: bluetooth.println("a"); vDD = 250; vDI = 250; vTD = 250; vTI = 250; DI = 2; DD = 1; break; case 113: bluetooth.println("q"); vDD = 250; vDI = 50; vTD = 250; vTI = 50; DI = 1; DD = 1; break; case 120: bluetooth.println("x"); vDI = 220; vDD = 220; vTI = 220; vTD = 220; DI = 2; DD = 2; break; } MotorDI->setSpeed(vDI); MotorDI->run(DI); MotorDD->setSpeed(vDD); MotorDD->run(Doctor of Divinity); MotorTI->setSpeed(vTI); MotorTI->run(DI); MotorTD->setSpeed(vTD); MotorTD->run(DD); ia=i; } }
Footstep 5: Competition
The competition was about bursting others balloons, equally explained connected the introduction. Here is a video of the contest. The pink squared car is the one we made. WE WERE THE CHAMPIONS.
Be the First to Share
Recommendations
-
Anything Goes Contest 2022
Source: https://www.instructables.com/MARIO-KART-1/
Posted by: mcdanielhilen1975.blogspot.com

0 Response to "MARIO KART : 5 Steps - mcdanielhilen1975"
Post a Comment