Skip to content

This is the code that I wrote for a model bus, if you are coming from MagPi, then you can see it here, otherwise, check this out on MagPi!

Notifications You must be signed in to change notification settings

myRaspberryPiArticles/Bus-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Here are all the features of my bus:

OLED Bus Display & Interactive Features

  • OLED Display: Shows scrolling text for the upcoming stop, bus number, and the route’s first and last stops.
  • Audio Announcements: A DFPlayer Mini with speaker plays the next stop in Japanese when a button is pressed.
  • Motion Control: A single switch activates a motor powered by 5V and Ground, driving the bus slowly forward.
  • Realistic Doors:
    • Sliding Double Doors: Designed in Tinkercad and 3D printed; operated by one servo for synchronized movement.
    • Front Door: Simpler mechanical design.
    • Both doors open/close via switches and trigger corresponding Japanese sound effects ("opening" and "closing").
  • Enhanced Immersion:
    • Extra buttons activate interior lights, a horn honk, and a “door closing” alarm.

Below I have added some pictures, and at the very bottom, there is a circuit diagram creatd in Fritzing!

image image image image image image image image image image image

About

This is the code that I wrote for a model bus, if you are coming from MagPi, then you can see it here, otherwise, check this out on MagPi!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages