Тёмный

Arduino Star Wars Game - how to make 

Volos Projects
Подписаться 100 тыс.
Просмотров 58 тыс.
50% 1

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 158   
@kombicruiser2658
@kombicruiser2658 Год назад
Thanks Volos Project. An entertaining and educational project. I got my non original Nano working on my Windows 11 laptop after updating my CH340 driver with CH341SER driver. Also of use was a gentleman's suggestion below (sorry cant recall who this was)' when using a 0.96 128x64 i2c OLED to : You need to call constructor differently this case: Thats how your code at lines around 26 should look like: #define OLED_RESET 4 #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
@King_Thenuja
@King_Thenuja 6 месяцев назад
Thanks a billion
@mysilentwarrior
@mysilentwarrior 2 года назад
I ported this to an electronics board I developed that has joysticks and you go up and down using a joystick... Thank you!
@bysatoo
@bysatoo 4 года назад
For those of you who have problems with the screen, you simply have to configure the pixel size in line 10 and 11 of the code.
@jam1930
@jam1930 4 года назад
hello, can i ask... the up and down buttons as well as the buzzer didnt work for me. do you know what could be the problem?
@bysatoo
@bysatoo 4 года назад
@@jam1930 check the pins of the buttons and the gnd
@fardintechltd7208
@fardintechltd7208 4 года назад
How can i configure?
@bysatoo
@bysatoo 4 года назад
@@fardintechltd7208 For those of you who have problems with the screen, you simply have to configure the pixel size in line 10 and 11 of the code.
@mahlonkarpaiya252
@mahlonkarpaiya252 Год назад
trying my best but cant see the pixel size thing@@bysatoo
@gabruekqbryh7871
@gabruekqbryh7871 3 года назад
That’s so cool I already had an AliExpress tab open and I was bout to start looking for the display but the tab was already on the perfect one I needed
@sebastianteran3750
@sebastianteran3750 2 года назад
Si desean corregir el tamaño de la pantalla agreguen esto el número es en donde esta escrito 27 #define ANCHO_PANTALLA 128 // Ancho de la pantalla OLED 28 #define ALTO_PANTALLA 64 // Alto de la pantalla OLED 30 Adafruit_SSD1306 display(ANCHO_PANTALLA, ALTO_PANTALLA, &Wire, OLED_RESET);
@thesight2268
@thesight2268 Год назад
THANKS
@sugeacosta6513
@sugeacosta6513 5 месяцев назад
Se puede poner un pantalla de 240x240 pulgadas? Y si es así que tendría que cambiar, te agradecería si me ayudas
@gracieparham487
@gracieparham487 Месяц назад
Can you play the game without it being plugged into computer?
@astronautrajan
@astronautrajan 3 года назад
the movement switches are connect with D11 and D12 and firing is at D3 and all ground are common i am right ??? pleasee tell
@laraarnedo7417
@laraarnedo7417 Год назад
Hey bro. I am new to arduino projects. can you tell if i still need to sketch the pixel display or you provided it on the description
@markokasuba1699
@markokasuba1699 5 лет назад
Hvala, sada mi neće biti dosadno
@VolosProjects
@VolosProjects 5 лет назад
Nema na cemu 😃
@markokasuba1699
@markokasuba1699 5 лет назад
Ja isto znam sa arduino, mada imam 13 godina, kako se zoves
@davidportilla_
@davidportilla_ 3 года назад
Nice project! 👏👏 I did a TikTok video with your project for this may 4th. Saludos desde México!!
@gustirama1771
@gustirama1771 4 года назад
The library support to 32 bit?
@ludwik8240
@ludwik8240 5 лет назад
Great little game. just have one question. What is " long readVcc " doing? during compilation it shows me error on every variable as not declared and game is working fine after removing that part from code. But maybe is needed for something? Thanks
@VolosProjects
@VolosProjects 5 лет назад
Omg, i forgot to delete that part, if you power arduino with lipo baterry, that part will tell you voltage of battery, you can delete it, it is not needed for game
@DG_tao
@DG_tao 2 года назад
SIMPLE FIX FOR 128x64 replace and paste this below #define OLED_RESET 4 #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
@sugeacosta6513
@sugeacosta6513 5 месяцев назад
Do you know if I can use a 240x240 inch TFT screen? If so, what would I have to modify to the code?
@KellerG68
@KellerG68 4 года назад
Hi, did you do something special to connect both buzzer and OLED screen ? I had issues about that with a nano (you got exactly the same setup). I heard about the choosen pin that can be the source of the problem. Someone else talked about the buzzer that could not be a real buzzer, do you have some references ? ;) Your projects are great !
@VolosProjects
@VolosProjects 4 года назад
Thank you, i didnt do anything special. But i remeber that i have that problems in past, i just used another pin on arduino. Dont forget setup that pin in code.
@KellerG68
@KellerG68 4 года назад
@@VolosProjects Thanks, I also get a freeze when I used both buzzer and OLED, I will check the pin 9 on the nano, it could be the problem solver 😉
@davidabraham3873
@davidabraham3873 5 лет назад
Is there a way to pair rc receiver to arduino transmitter, I want an rc receiver because of how compact and cheap it is and also the wide voltage range I can input to it
@MaxImagination
@MaxImagination Год назад
Hi there. I really like your projects! Great stuff! I am currently having issues with getting this project's code working with my SSD1315 I2C OLED Display. Do you know what might I need to change in the code to get it working? Thanks!
@VolosProjects
@VolosProjects Год назад
Sorry i dont, i never used that display.
@MaxImagination
@MaxImagination Год назад
@@VolosProjects No worries, thanks for the reply anyway.
@sugeacosta6513
@sugeacosta6513 5 месяцев назад
​​@@MaxImaginationdid You used it?
@ezraserdynski317
@ezraserdynski317 4 года назад
I was Wondering How you would go about Programming this code to be displayed on a TV screen though an RCA cable? Please let me know!
@gabruekqbryh7871
@gabruekqbryh7871 3 года назад
Omg that would be so cool
@sugeacosta6513
@sugeacosta6513 5 месяцев назад
You did?
@gabruekqbryh7871
@gabruekqbryh7871 3 года назад
I'm new to all of this but which Arduino is that?
@gabruekqbryh7871
@gabruekqbryh7871 3 года назад
@Unofficial Engineer thank you
@OttoisOhio
@OttoisOhio 2 года назад
Help I have make everything right and it’s work before and it’s not displaying now, I suspect maybe I uploaded too many times or the display die. If it’s the display how can I fix it.
@vitoriarani5782
@vitoriarani5782 3 месяца назад
Hello, I loved your project. But I'm having a problem downloading the libraries, when I enter the link it always gives an error, could anyone help me?
@skulltronics3680
@skulltronics3680 3 года назад
Awesome video but the code is for a 128x32 size display
@shahriarsinon6993
@shahriarsinon6993 6 месяцев назад
I can't see the full game on my oled display screen.Please help.
@damainx
@damainx 3 года назад
Getting an error with this ... ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); This is the error from the IDE ... 'ADMUX' was not declared in this scope. Also, one of the libraries, Adafruit_SSD1306_Wemos_OLED is not included in the sketch. Also, the code is very messy.
@aniqzamzamy
@aniqzamzamy 2 года назад
same problem
@gabriel-deep
@gabriel-deep Год назад
is it possible to do with an esp32 and a st7789 display?
@soniccinos
@soniccinos 2 года назад
Very nice!!! Can't wait for my display to arrive to try this out!!!
@mateopineda5431
@mateopineda5431 3 года назад
can you use the TVOUT package in another tutorial to make the game on a mini CRT screen?
@chouaibfethallah3575
@chouaibfethallah3575 3 года назад
How do you change size to fit screen
@VolosProjects
@VolosProjects 3 года назад
Size of what?
@ΔημητρηςΚοης
@ΔημητρηςΚοης 4 года назад
Hey man, nice project. I have a question. Can this project be built on arduino UNO aswell?
@VolosProjects
@VolosProjects 4 года назад
Yes, Uno and nano use same MCU
@ΔημητρηςΚοης
@ΔημητρηςΚοης 4 года назад
@@VolosProjects Will the code need any changes though? Thanks for replying!
@VolosProjects
@VolosProjects 4 года назад
@@ΔημητρηςΚοης no
@ΔημητρηςΚοης
@ΔημητρηςΚοης 4 года назад
@@VolosProjects I have 1 more question. When i apload the code and try to verify it. There is an error thats says, low memory available. That means my arduino UNO does not have enough space for the code?
@VolosProjects
@VolosProjects 4 года назад
@@ΔημητρηςΚοης it is just warning, just upload code
@jancarlosmarc8735
@jancarlosmarc8735 4 года назад
saludos de Colombia amigo muchas gracias por el juego
@mahlonkarpaiya252
@mahlonkarpaiya252 Год назад
i Just amde this game with my children and love it. I have one problen i need to resize the screen. on my screen the bottom of the image is cut off like i need to shring the game display. is this posible?
@VolosProjects
@VolosProjects Год назад
Hello, now, you need to eneter setup file of library, i forgot name of that file and you need to chose correct size of your display
@naredino
@naredino 10 месяцев назад
Did you find the libraries???
@cuarentenaviral4756
@cuarentenaviral4756 4 года назад
Porque no me funcionan los botones si las conexiones son correctas?
@ingenierocristian
@ingenierocristian 10 месяцев назад
Hi, the file in Google Drives appears as not found, could you help me with the code?
@matthart4045
@matthart4045 3 года назад
I got the hardware going but cant get it to fit the screen. Seems super zoomed in. Any thoughts?
@VolosProjects
@VolosProjects 3 года назад
hi mat, your library is set to 128x32, you need to set 128x64. Do you use library i posted in description?
@matthart4045
@matthart4045 3 года назад
@@VolosProjects I downloaded the library zip file but the ide is saying it doesn't contain a valid library. Can I change it manually?
@VolosProjects
@VolosProjects 3 года назад
Do you bave original adafruit library? Od you bave , you Will news to delte iz bacouse they Will ne on conflict
@PoweredBricks
@PoweredBricks 5 месяцев назад
Will it work on nano uno or mega?
@VolosProjects
@VolosProjects 5 месяцев назад
probably it will , i tried only on nano
@ruslanserov1782
@ruslanserov1782 2 года назад
Классно, всё работает. Но у меня экрас IIC OLED SSD 1306 и контроллер Arduino UNO 12 MHz. Работает медленнее и треть экрана игры не входит в дисплей (в нижней части)
@Ramonvdh
@Ramonvdh 4 года назад
What a great Arduino projec, thaks for sharing! Did you write the sketch yourself?
@VolosProjects
@VolosProjects 4 года назад
Hello! Thank you! Yes i did, feel free to use or modify code :)
@Ramonvdh
@Ramonvdh 4 года назад
@@VolosProjects Thank you very much, I want to try and port it to ESP-WROOM-02, just for fun :)
@oneguyoneblog7388
@oneguyoneblog7388 4 года назад
@@VolosProjects I modified it for the ESP-WROOM-02 (esp8266), I hope you like it! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ryxZ4GuhdXc.html
@TrailMaker2
@TrailMaker2 2 года назад
I have TFT LCD Display Module 1.3inch SPI 240x240 RGB ST7789 and I tried making this project but I didn t manage to make it because the code doesn t work for my display, I tried modifying it but the screen only flickers and I see only half of the star ship and its not playable at all. Can you pls help me with the code?
@sugeacosta6513
@sugeacosta6513 5 месяцев назад
Lo pudiste solucionar?
@ForwardEngineering
@ForwardEngineering 4 года назад
Could adapt this to a 128x64 0.96" Display easily? Awesome video by the way!
@VolosProjects
@VolosProjects 4 года назад
this is 0.96 128x64 i2c OLED, maybe you have SPI veon with more pins?
@ForwardEngineering
@ForwardEngineering 4 года назад
@@VolosProjects This is what I have. www.ebay.com/itm/0-96-I2C-IIC-Serial-128X64-128-64-Blue-OLED-LCD-LED-Display-Module-for-Arduino/382850692423?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
@ForwardEngineering
@ForwardEngineering 4 года назад
I noticed in the code at the top it says its for a 128x32 size display using I2C
@ForwardEngineering
@ForwardEngineering 4 года назад
Here is a video of my issue. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-p9GSG2C5qK0.html
@ВладимирГрачев-ы2и
@@ForwardEngineering I had the same issue and I found the solution, looks like you're using new libraries from arduino repository with Volos's sketch. You need to call constructor differently this case: Thats how your code at lines around 26 should look like: #define OLED_RESET 4 #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
@felipemunoz8752
@felipemunoz8752 7 месяцев назад
Cool video but the libraries link is broken, thanks
@conorwardick2154
@conorwardick2154 3 года назад
am using this for a project would anybody know to to change the display size as i am using this on a smaller screen?
@gabruekqbryh7871
@gabruekqbryh7871 3 года назад
Smaller than the one he’s already using??
@kevinperies4450
@kevinperies4450 2 года назад
sir, the game works fine but it does not fit to the screen size its enlarged and i can only see half of the picture, any solutions?
@VolosProjects
@VolosProjects 2 года назад
Your library is set to 128x32 so picture is sreched, you need to set it to 128x64
@unclelelax8341
@unclelelax8341 Год назад
is this convertable to 3.5 tft lcd with uno?
@sugeacosta6513
@sugeacosta6513 5 месяцев назад
Did You used it?
@clintpereira4529
@clintpereira4529 2 года назад
good morning bro i need this to work for 1.3 inch oled display.
@mohammedziyad753
@mohammedziyad753 Месяц назад
It did not work ?
@thezombieguy426
@thezombieguy426 3 года назад
Hi there nice game , but after i uploaded the code the starship either goes up or down automatically , and idk how to fix this problem , any help?
@VolosProjects
@VolosProjects 3 года назад
I dont know, I havent tried game latley , you can try to check conection
@americanpsychosis11
@americanpsychosis11 4 года назад
Do you know if there is a way to get this to work with the adafruit ssd1331 oled?
@VolosProjects
@VolosProjects 4 года назад
sorry, i never used 1331 , you can try
@hilside3565
@hilside3565 3 года назад
i tried and is not working
@poliewzs
@poliewzs 4 года назад
can you please help me with the 0.96 "128x64 oled code.
@mahmoodrj13
@mahmoodrj13 Год назад
Great job! But as an educational material, I opened your code and none of the variables made sense to me, so i didn't learn much by reading it. I wish they were in English so that everyone could understand.
@NLGeebee
@NLGeebee 11 месяцев назад
What about copy paste the variables in Google translate or DeepL? Then you search and replace all variables with the translated ones.
@maronara3398
@maronara3398 4 года назад
does this work with an lcd
@shahnewajbd4623
@shahnewajbd4623 5 месяцев назад
Circuit diagram link please
@tszulpinedo757
@tszulpinedo757 2 года назад
Está bien hermoso... 😍
@Traveller_635
@Traveller_635 Год назад
i cant download libraries plz do solution
@vel1800
@vel1800 4 года назад
can u use oled 128 x 64 ?
@VolosProjects
@VolosProjects 4 года назад
this is oled 128x64
@vel1800
@vel1800 4 года назад
@@VolosProjects but when i uploaded the script, the display is stretched. The ship does not appear on the oled
@VolosProjects
@VolosProjects 4 года назад
@@vel1800 your library is probably set to 128x32 you will need to find Adafruit_SSD1306.h file inside your library folder. You will need to edit it. Un comment 128x64 and comment 128x32
@vel1800
@vel1800 4 года назад
@@VolosProjects ohhhhh, thanks mann
@ΔημητρηςΚοης
@ΔημητρηςΚοης 4 года назад
@@vel1800 hi i got the same problem. I found the Adafruit_SSD1306.h file but how do u edit it?
@royalrubie1149
@royalrubie1149 4 года назад
Can we use pro mini
@VolosProjects
@VolosProjects 4 года назад
Yes , it wil be even more compact
@aldoortaestrada3379
@aldoortaestrada3379 2 года назад
Can we use ESP8266?
@VolosProjects
@VolosProjects 2 года назад
Yes, it will run even better
@abod.y83
@abod.y83 Год назад
أين الكود code
@lewlew212
@lewlew212 2 месяца назад
Can you share the code?
@yakupanilozturk3128
@yakupanilozturk3128 2 года назад
cool project,but the code is messy, please consider giving English names to the variables and add comment lines
@VolosProjects
@VolosProjects 2 года назад
Yes i know, that is old project. Sorry, now i am trying to make more redable code.
@electronic7979
@electronic7979 5 лет назад
Very good 👍
@Traveller_635
@Traveller_635 Год назад
Hey plz do solution for libraries , i can't download 😢
@naredino
@naredino 10 месяцев назад
Did you find the libraries???
@kimirlines_5464
@kimirlines_5464 Год назад
can't download library(
@xalbert1709
@xalbert1709 4 месяца назад
hello! it can not download
@Dead-blox
@Dead-blox 3 года назад
It just said no such file or directory.
@vel1800
@vel1800 4 года назад
why cant i upload my code to my arduino nano
@VolosProjects
@VolosProjects 4 года назад
i dont know, it can be many reasons
@MikevomMars
@MikevomMars 4 года назад
For some unknown reason, Arduino people seem to hate provding a parts list in their video description 😑
@ItzZappy
@ItzZappy Год назад
the link didnt work
@naredino
@naredino 10 месяцев назад
Did you find the libraries???
@sajeevikaperera4215
@sajeevikaperera4215 3 года назад
Can you pls send me the code of 0.96 oled display. It would great help
@VolosProjects
@VolosProjects 3 года назад
You can download it, it is in description
@VolosProjects
@VolosProjects 3 года назад
You can download it, it is in description
@arduinoseruveni
@arduinoseruveni 7 месяцев назад
ı am dont see score
@michellecloydannetanada1994
@michellecloydannetanada1994 3 года назад
thanks bro its work!!!
@VolosProjects
@VolosProjects 3 года назад
Nice to hear that😃
@JC-zl7sq
@JC-zl7sq 5 лет назад
I like it
@digitalturn6267
@digitalturn6267 4 года назад
very good !
@TrotzallemHoffnung
@TrotzallemHoffnung 7 месяцев назад
buttons are not working
@King_Thenuja
@King_Thenuja 6 месяцев назад
Probably you didn't connect a wire or mal connected it or an error in the code
@chirudb
@chirudb 5 лет назад
Circuit diagram please
@senulavindivwijeweera235
@senulavindivwijeweera235 4 месяца назад
code please!!!!!
@crisselectronicprojects8408
@crisselectronicprojects8408 5 лет назад
Nice! Very good 👍
@sefanja4777
@sefanja4777 Год назад
The google drive link expired. Can you give us the new one? :)
@naredino
@naredino 10 месяцев назад
Did you find the libraries???
@Markovicc21
@Markovicc21 Год назад
volose brt pomagaj ovaj google drive link ti neradi vise
@naredino
@naredino 10 месяцев назад
Did you find the libraries???
@lochobhai
@lochobhai 10 месяцев назад
library code give me
@naredino
@naredino 10 месяцев назад
Did you find the libraries???
Далее
I Created a (terrible) Video Game Console
9:21
Просмотров 2,4 млн
ATtiny85 Game Console PCB - Multiple Games
13:46
Просмотров 80 тыс.
Handsoms😍💕
00:15
Просмотров 7 млн
Китайка и Пчелке Холодно😂😆
00:21
Top 5 Arduino Gaming Consoles
7:55
Просмотров 82 тыс.
Runway Just Changed AI Video Forever! Seriously.
9:39
Bad apple
11:42
Просмотров 5 млн
I Made The Ultimate Cheating Device
9:39
Просмотров 1,2 млн
Arduboy clone with Arduino Nano and I2C Oled display
3:35
Fun with Transistors
24:33
Просмотров 451 тыс.
How to make Arduino based Mini Game Console
4:19
Просмотров 121 тыс.