Raspberry Pi Slot Machine Image
In this post, we are going to discuss preparing Linux minimal boot image for Raspberry Pi 4 using the Yocto/OpenEmbedded build system. You can use the steps discussed here for Raspberry Pi 1/2/3 by changing the machine selection during the Yocto build configuration.
This new slot machine is created in Java ran on Raspberry Pi using Graphics 2D and Pi4J API. Now, RasPi slot machine have a new look with metallic case and n. For our purpose, we’ll be using the premade images for the Raspberry Pi (as opposed to installing it over an existing operating system). Download the right image for your Pi model number here. Additionally, you’ll need some sort of tool to burn that image to your SD card—our tool of choice is the cross-platform Etcher image burner.
Prerequisites
- Ubuntu 18.04 is recommended for the current latest Yocto release Dunfell 3.1.1 (This is the latest release at the time of writing this post). Ubuntu 16.04 users should install Yocto buildtools as discussed below.
- Please refer Yocto quick build doc for other supported host OS and required host packages.
- Raspberry Pi 1/2/3/4
- Micro USB Power Cable ( USB Type C for Raspberry Pi 4)
- Monitor with HDMI interface
- Standard HDMI Cable ( Micro HDMI for Raspberry Pi 4)
- MicroSD card with an SD card reader
- USB Keyboard and USB Mouse
- Ethernet patch cable if you are planning to use the wired network
Setup Yocto build environment
In this post, we will be using Ubuntu 16.04 Host OS. For other supported Host OS and required host packages please refer Yocto quick build doc
Install required host packages
Clone Yocto Poky
The poky is the reference distribution of Yocto/OpenEmbedded build system.
Checkout Yocto poky dunfell 3.1.1 release
Install Yocto Build tools
Setup Yocto build tools environment
Clone ‘meta-raspberry’ Yocto BSP layer for Raspberry Pi board support
Initiate build environment
Add ‘meta-raspberrypi’ layer to the bblayers.conf
Find machine name for Raspberry Pi 4
From the above listing, machine name corresponding to Raspberry Pi 4 is ‘raspberrypi4’
Configure machine name
In our case, our machine name is ‘raspberrypi4’, configure this machine name in local.conf file located at ‘conf’ directory under ‘poky/build_rpi’ folder, as shown in the following figure.
Trigger the build
It takes some time to complete based on your system performance.
Build output images are available at the following location
Write boot images on an SD card
- Connect micro SD card using the SD card reader to your PC
- Detect the connected SD card device using dmesg and lsblk commands
Generally, a micro sd card is detected as /dev/mmcblkX or /dev/sdX, where X value as per the device. Find your recently connected micro sd card using dmesg command
- Find whether SD card has any mounted partitions
Here sda is the hard disk and sdb is the SD card
- unmount mounted SD card partitions if any.
In my case, two sd card partitions ‘/dev/sdb1’ and ‘/dev/sdb2’ are mounted. I am going to unmount using the ‘umount’ command
Now we are going to write ‘core-image-base-raspberrypi4.wic’ image using ‘bmaptool’
If your system doesn’t have ‘bmaptool’ command installed, you can install ‘bmap-tool’ package using ‘apt install’ command as below
Connecting and booting the Raspberry Pi
- Insert your flashed Micro SD card to the slot at the bottom side of your Raspberry Pi marked as ‘MICRO SD CARD’.
- Connect USB keyboard
- Connect HDMI cable
- For Raspberry PI 4, connect Micro HDMI cable to the port marked as ‘HDMI0’
- Connect Micro USB power adapter
- For Raspberry PI 4, connect USB Type C power adapter to the port marked as ‘POWER IN’
Now we are done with all physical connections to our Raspberry Pi. Power up your connected Monitor and Raspberry Pi, Now Linux should boot up!
AdoPiSoft Basic Setup with Raspberry Pi 3
This is a basic guide on how to flash AdoPiSoft software into Raspberry Pi 3 Model B/B+ and have a working coin-operated wifi hotspot machine. You can also use this guide to reformat your old machine and install our latest image.
If you want a production-ready wifi hotspot machine, please contact the distributors.
Step 1: Prepare the materials needed
If you don't have the coin acceptor yet, you can still proceed to install the software and configure your wifi vending machine as long as you have araspberry pi,power supply(for raspberry pi) and amicro SD card. You won't be able to test the payment functionality though.
- Raspberry Pi 3 Model B or B+
- Universal Coinslot / Multi-coin Acceptor
Others
- 4GB (or higher) Micro SD Card - class 6 or 10 (important)
- Micro SD Card Reader
Important: The micro SD card must be of high quality. Use Sandisk Ultra or Samsung Evo
- Raspberry Power Supply
12 Volts DC Power Supply
12V DC at least 1A output power supply.
This is used to power the coin acceptor. You must identify the positive and ground terminal using voltmeter.
Step 2: Software Installation
Needed softwares:
- Download and install Etcher to your computer.
- Download Ado Piso WiFi Raspbian Image
After downloading the needed softwares, we need to flash the installer into the midro SD card using Etcher. To do so, unzip the contents ofadopisowifi.zip
Insert the micro SD card into the your computer using a card reader.
Open Etcher and click Select Image.
Then select adopisowifi-(version).img
from the zip file.
Make sure to select your micro SD card
Click the Flash!
button and wait for the process to finish.
If you encounter prompts about formatting your sd card, just click Cancel.
Step 3: Configure The Machine
IMPORTANT:
Make sure you do the following before turning on the raspberry:
- Insert the SD card into the raspberry sd slot.
- Insert the LAN cable into the ethernet port of raspberry pi and make sure it is connected to internet
Note: You don't have to insert a monitor to the HDMI port.
Turn on the raspberry pi and wait for the AdoPisoWifi
WiFi network to appear, it may take a couple of minutes.
Connect to the wifi network using your laptop or smartphone. Once connected, open a browser and go to http://10.0.0.1/admin
username:admin
password:admin
(The machine is also accessible in your ethernet using its WAN IP.)
Step 4: Connecting All Components
Connect all the connections base on the circuit diagram. Make sure to check the positive ang negative terminal of the 12V DC power supply for the coinslot to work properly.
Raspberry Pi Slot Machine Images
Step 5: Update the Software
Raspberry Pi Slot Machine Image Tool
Software is constantly being improved, you need to update the software after installation to get the latest features. To update the software, go to the admin settings and navigate to Device
section. Then click the Check For Updates
button at the bottom of the page. Then click for Install Updates
button.
Join our Community
Raspberry Pi Slot Machine Image Free
We have a lot of users that have already created a machine using our software. Join our discussions and see what others are doing with their wifi vending machines.
Note:
Raspberry will use it's built-in wifi module to broadcast the SSID. But its signal is very weak and recommended only for testing purposes. It is best to upgrade the antenna using external access point / CPE antenna to extend the wifi range and speed of your wifi vending machine.