Using an existing game and creating our own alternative controllers
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
IMG_1900.mp4LEDs on the dashboardMPEG-4 Video - 13.27 MB - 12/11/2024 at 13:25 |
|
|
102d7d0ee9d94df38f518239c1e81368.mp4First try of the music programMPEG-4 Video - 2.01 MB - 12/11/2024 at 13:23 |
|
|
IMG_1901.jpegTrying the kartJPEG Image - 1.79 MB - 12/11/2024 at 13:23 |
|
|
4ba024a48a7c4e09a0eef71c4a2c5f93.mp4Drilling the dashboardMPEG-4 Video - 392.47 kB - 12/11/2024 at 13:23 |
|
|
979D0EDE-AEC6-40C1-828D-A85BFBFD10DE.jpegFinal look of the KartJPEG Image - 115.86 kB - 12/11/2024 at 13:23 |
|
|
This was our last session so we tried to finish everything we had left.#
We tried to find a solution for our steering wheel problem and we decided to fix it as tight as possible on the joystick for it to be more smooth. We didn't have the time to do the steering mechanism we wanted and had a lot to do so we went with this prototype.
Maewenn did the code and circuit on arduino to add the mario music. This is the code:
int buzzerPin = 8;
// Notes of the Mario theme song
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49
#define NOTE_GS1 52
#define NOTE_A1 55
#define NOTE_AS1 58
#define NOTE_B1 62
#define NOTE_C2 65
#define NOTE_CS2 69
#define NOTE_D2 73
#define NOTE_DS2 78
#define NOTE_E2 82
#define NOTE_F2 87
#define NOTE_FS2 93
#define NOTE_G2 98
#define NOTE_GS2 104
#define NOTE_A2 110
#define NOTE_AS2 117
#define NOTE_B2 123
#define NOTE_C3 131
#define NOTE_CS3 139
#define NOTE_D3 147
#define NOTE_DS3 156
#define NOTE_E3 165
#define NOTE_F3 175
#define NOTE_FS3 185
#define NOTE_G3 196
#define NOTE_GS3 208
#define NOTE_A3 220
#define NOTE_AS3 233
#define NOTE_B3 247
#define NOTE_C4 262
#define NOTE_CS4 277
#define NOTE_D4 294
#define NOTE_DS4 311
#define NOTE_E4 330
#define NOTE_F4 349
#define NOTE_FS4 370
#define NOTE_G4 392
#define NOTE_GS4 415
#define NOTE_A4 440
#define NOTE_AS4 466
#define NOTE_B4 494
#define NOTE_C5 523
#define NOTE_CS5 554
#define NOTE_D5 587
#define NOTE_DS5 622
#define NOTE_E5 659
#define NOTE_F5 698
#define NOTE_FS5 740
#define NOTE_G5 784
#define NOTE_GS5 831
#define NOTE_A5 880
#define NOTE_AS5 932
#define NOTE_B5 988
#define NOTE_C6 1047
#define NOTE_CS6 1109
#define NOTE_D6 1175
#define NOTE_DS6 1245
#define NOTE_E6 1319
#define NOTE_F6 1397
#define NOTE_FS6 1480
#define NOTE_G6 1568
#define NOTE_GS6 1661
#define NOTE_A6 1760
#define NOTE_AS6 1865
#define NOTE_B6 1976
#define NOTE_C7 2093
#define NOTE_CS7 2217
#define NOTE_D7 2349
#define NOTE_DS7 2489
#define NOTE_E7 2637
#define NOTE_F7 2794
#define NOTE_FS7 2960
#define NOTE_G7 3136
#define NOTE_GS7 3322
#define NOTE_A7 3520
#define NOTE_AS7 3729
#define NOTE_B7 3951
#define NOTE_C8 4186
#define NOTE_CS8 4435
#define NOTE_D8 4699
#define NOTE_DS8 4978
int melody[] = {
NOTE_E7, NOTE_E7, 0, NOTE_E7,
0, NOTE_C7, NOTE_E7, 0,
NOTE_G7, 0, 0, 0,
NOTE_G6, 0, 0, 0,
NOTE_C7, 0, 0, NOTE_G6,
0, 0, NOTE_E6, 0,
0, NOTE_A6, 0, NOTE_B6,
0, NOTE_AS6, NOTE_A6, 0,
NOTE_G6, NOTE_E7, NOTE_G7,
NOTE_A7, 0, NOTE_F7, NOTE_G7,
0, NOTE_E7, 0, NOTE_C7,
NOTE_D7, NOTE_B6, 0, 0
};
int noteDurations[] = {
12, 12, 12, 12,
12, 12, 12, 12,
12, 12, 12, 12,
12, 12, 12, 12,
12, 12, 12, 12,
12, 12, 12, 12,
12, 12, 12, 12,
12, 12, 12, 12,
9, 9, 9, 9,
9, 9, 9, 9,
9, 9, 9, 9,
9, 9, 9, 9
};
void setup() {
pinMode(buzzerPin, OUTPUT); // Set buzzer pin as output
}
void loop() {
for (int thisNote = 0; thisNote < sizeof(melody) / sizeof(int); thisNote++) {
int noteDuration = 1000 / noteDurations[thisNote];
if (melody[thisNote] != 0) { // Play only if the note is not silence
tone(buzzerPin, melody[thisNote], noteDuration);
}...
Read more »This session we did a lot of things. Everyone had their tasks. We mostly perfected the final prototypes and took care of formating.
Celine and Maewenn : They started by designing then drawing mario object on the base of the poullie system and then painting them. They also cut out and painted a big star. Which they then fixated on the sides of the poullie. And then they worked on the dashboard. They found a wooden plank for the base and two stand on which we will be able to put the dashboard. They took the measurements. They also worked on the kart system because we realised that it was good for us to fit in it but when we tried with other people from the class who were taller, it was a tight fit. With Lucine they started talking about other solutions so that the kart can be modifiable depending on who wants to play the game.
Leila: Leila started by making a new prototype of the steering wheel because we saw that it was not very clean and when we tested the game it did not do what we wanted it to do very smoothly. Once this was done she worked on soldering 8 other LEDs with resitances. Finally we tested the new steering wheel and saw that our problem was not completely fixed so she and Lucine worked on that.
Lucine: Lucine started by painting the foam ball to make it look like a mario mushroom (this button is used for the button made for sliding. Then she drew and painted the flowers which decorate the poullie system. After this she worked on soldering 8 other LEDs with resitances which will be used on the dashboard. After this she helped prototyping the new steering wheel and the kart.
For next time we need to nail the plank to the stands for the dashboard, fixate the LEDs to the dashboard, paint the kart, finish the new steering wheel, relook at the code to add sounds and retest the game.
This session we finished the final poullie system and the lever. We started soldering the LEDs to the resistances so that we can add lights to the dashboard. We also started the code and circuit to add music thanks to arduino. We also started making the final kart and pedal.
Next time we need to continue soldering, paint our finished parts, finish the arduino music code and decorate the whole kart and dashboard.
We saw that the servo motor would be too small to sustain the weight of our feet and so we tried mechanical resistances for the pedal instead. We tried 2 prototypes one with foam and one with springs we made out of metal wires. The springs had a more realistic feeling and so we have chosen this one.
We also made a 3rd prototype of our poullie system with harder cardboard to make sure it presses the button on top of the bow when we pull it. We also found our wheel for the final poullie we just need to find a way to make it higher, tubes from tin foil seem to work well.
We also continued on our code for LEDs but we do not know how we will display them
We tested our game again and started on the arduino part. We want to add a resistace on the pedal control to make it feel more realistic for this we are trying to use a servo motor. We also want to add lights on the dashboard. We started the code for the motor and made a new prototype for the pedal. We had a hard time with the arduino code and we need to re do it in the next session.
We realised our game was more suited for a car game and we found another game which resembles mario kart
We made second prototypes for the stearing wheel and our poullie system. We installed all the wireing and using JoyToKey we give each button and joystick their purpose. We tried the game with all the controls.
Found a plane game because this was our initial idea and made a first prototype of some controls we wanted thanks to tutorials on youtube.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates