SideTracked Space Invaders u8g2

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • Greetings RUclipsrs, I’m Rick the Tech Enthusiast here with a special video I’m calling SideTracked.
    You can probably guess from the title, it’s when I get sidetracked with an alternate build or some cool new tech. This sidetracked video will cover my Space Invaders U8g2 conversion
    I got the Space Invaders bug after watching another great video series by XTronical covering his development of Space Invaders for the Arduino Nano. His Space Invaders uses an I2C OLED with the Adafruit_SSD1306 library and a customized ToneAC Library.
    After watching the series, I wondered if I couldn’t port his code to the Arduino Uno, using the SPI OLED I had, switching to the U8g2 library, and the Analog Joystick Module. So, in this video I’ll show you my “gaming circuit”; my modified sketch with a few alterations; and finally, some Space Invaders game play.
    For this gaming circuit, you’ll need the following items:
    * Elegoo Arduino UNO R3 board
    * SPI or I2C OLED 128x64 SH1106 or SSD1306 display
    * The Analog Joystick Module
    * Five female-to-male jumper wires
    * Passive Buzzer
    * 100-ohm resistor
    * Tactile push button switch
    * Several miscellaneous jumpers
    Sketch can be found here:
    [Github](github.com/rmo...)
    XTronical Space Invader Series Links:
    * Part 1: www.xtronical.c...
    * Part 2: www.xtronical.c...
    * Part 3: www.xtronical.c...
    * Part 4: www.xtronical.c...
    * Part 5: www.xtronical.c...
    * Part 6: www.xtronical.c...
    * Part 7: www.xtronical.c...
    * Part 8: www.xtronical.c...
    * Part 9: www.xtronical.c...
    * Part 10: www.xtronical.c...
    * Part 11: www.xtronical.c...
    Thanks for watching
    Other Important Links: (Note some of these are Amazon Associates links - Full Disclosure: I get a little credit/$ if you purchase a linked item.)
    * LCD1602 Module with 3.3V Backlight 16x2 Character White on Blue Background by SunFounder www.amazon.com...
    * Passive Buzzers, Cylewet 10Pcs 5V 2 Terminals, Arduino (Pack of 10) on Amazon’s web site: www.amazon.com...
    * Elegoo EL-KIT-001 UNO R3 Project Complete Starter Kit with Tutorial for Arduino (63 Items) on Amazon’s web site: www.amazon.com...
    * Elegoo’s web site www.elegoo.com/
    www.elegoo.com...
    * Fritzing Software: fritzing.org/do...
    * Arduino Language Reference (English): www.arduino.cc...
    * toneAC Library bitbucket.org/... - note this is the unmodified version
    * U8g2 Library reference Wiki page github.com/oli...
    Affiliate Links that Help my channel:
    * Try Prime Discounted Monthly Offering: amzn.to/2PnVgSA
    * Try Amazon Prime 30-Day Free Trial: amzn.to/2E5Hy4O
    * Prime Student 6-month Trial: amzn.to/2ElxwNE
    * Join Amazon Prime - Watch Thousands of Movies & TV Shows Anytime - Start Free Trial Now: amzn.to/2PsEZvE
    * Give the Gift of Amazon Prime amzn.to/2EkFaYG
    * Kindle Unlimited Membership Plans: amzn.to/2QJl548
    * Try Audible and Get Two Free Audiobooks: amzn.to/2QD2B5v
    * Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices: amzn.to/2Ptpdkl
    Music provided by Free Music Archive, by artist D SMILEZ
    - [D_SMILEZ_-_05_-_Hit_The_Dance_Floor](freemusicarchiv...)
    This is another video for my new Arduino series. If you like the series, be sure to rate and subscribe.

Комментарии • 12

  • @gpTeacher
    @gpTeacher 6 лет назад +1

    Thanks So much Ricardo! I did the xtronical code last night and BOOM! No work! Took all day today to find that my display is SH1108 instead of the SSD1306. Your explanation and changes are GREAT! Thanks kindly! Best wishes, Gord

    • @rickmorenojr
      @rickmorenojr  6 лет назад

      So happy I was able to help. I have a bunch more videos planned, but it's summer and hard to make time for all of them. Thanks for your kind words.

  • @djdoncruz
    @djdoncruz 5 лет назад +1

    awesome video great fun little project. I am using the old screen from my Ender3 printer (slight variation on 12864zw-10) so all I had to do was change all the oled to u8g2 and move a pin (as my screen used 10 which is the buzzer) and it worked great.

    • @rickmorenojr
      @rickmorenojr  5 лет назад

      Fantastic, happy to hear it worked for you.

  • @leesohaeng
    @leesohaeng 6 лет назад +1

    it's a great project~!!

  • @ramaclub6281
    @ramaclub6281 5 лет назад

    The last frame made me think of AI for Robotron seems like to can find places where you might never get shot. And tab thru safer zones.

  • @himangshudas3924
    @himangshudas3924 4 года назад

    hey i need a selection menu with u8g2...if option 1 is selected- print hello ..if option 2 is selected - print hi....with the use of buttons .....i am unable to do this with the selection example given in the library...can u help me with that?

  • @dsfromsomewhere
    @dsfromsomewhere 5 лет назад

    Subscribed. First, thank you for sharing this project. Stupid question 1: what is the size of any individual sprite before convert to hex? stupid question 2: curiosity. You have a latin name, like brazilian people. Are you from Brazil, like me? best wishes.

  • @ramaclub6281
    @ramaclub6281 5 лет назад

    33:45 Your change to byte mask was CD so its masking 1100 and 1101? instead of 1100 0000 How does bitmasking work. Is the 1 displayed Are you AND0 to Clear or OR1 to Set

  • @d580602
    @d580602 2 года назад +1

    Thanks for your tutorial.
    When I complete wire and upload code to my Arduino UNO R3, I got an error message:
    In file included from C:\Users\chiaen\Desktop\arduino_exercise\SpaceInvaders_U8g2\SpaceInvaders_U8g2.ino:23:0:
    C:\Users\chiaen\Documents\Arduino\libraries\toneAC/toneAC.h:111:82: error: could not convert 'false' from 'bool' to 'bool*'
    void noiseAC(unsigned long length=250, uint8_t volume=10, bool* Completed=false);
    ^
    exit status 1
    開發板 Arduino Uno 編譯錯誤。
    Could you tell me where is the problem? Thank you so much.

    • @cmarinv2005
      @cmarinv2005 Год назад

      EYE FOTO, ese error se debe a la libreria toneAC, la versión modificada genera ese error, nadie ha sabido contestarme por que ocurre esto...

  • @ramaclub6281
    @ramaclub6281 5 лет назад

    I feel like I always learn a slipped secret from your videos. Thanks. But you confused me with your jumper talk I was thinking there was an array of brown wire connects the sub-pts. How do schematics represend chronological or "cumulant" [i think I made that word up] connected pts. Like solder across a dev board.