Electronics and programming

Raspberry pi zero Scanner

You will find the guidelines for hooking up the electronics and programming the device

This is the basic layout of the base which contains the electronics needed to run the device.

Things you need

Raspberry Pi Zero (1-7 pieces)
Raspberry Pi Zero camera V1 or V2 (1-7 pieces)
L298N Stepper controler
Bipolar Stepper motor NEMA 17
Power supply 12V 10A (for motor and LED)
Power supply 5V for RPI and cameras

5mm Flange
some M3 screws and bolts

Step 1 connections

This is the Fritizing schematics. I hooked the L298N controller to GPIO of the Master Pi Zero  23 and 24 for the A coil and 4 and 17 for the B coil.
Other R Pi’s (Slaves) talk to to the Master via WiFi. Make sure you are using the ones that support it.

 

Step 2

Burn the ISO images to the SD cards for each R Pi Zero.
You only need Lite (headless) version and I use balenaEtcher to do the process.
You can download it HERE.

Step 3

Setup wireless access to the R Pi’s using SSH and PuTTY.
You can find the guide here

Step 4

Install Python libraries if you don’t have them

Enable Cameras

Make sure you can take photos using R Pi camera on all the Raspberry Pi’s; test using the command

raspistill -o Desktop/image.jpg

 


Step 5

Assign static IP addresses to your R Pis.
You can find instructions here
In my case these are:

master = “192.168.0.90”
slave1 = “192.168.0.91”
slave2 = “192.168.0.92”
slave3 = “192.168.0.93”

 

Step 6

Load up m.py to you Master Pi Zero and s1.py through s3.py to each of the slaves.

Run slave python scripts first and wait for the confirmation.

Run the master script to control them all!

 

Download section.

You can download the codes by clicking on the python logo on the left.

I've been financing this project out of my own pockets and it has cost a lot so far. If you like and would like to support it, please make a donation to make it running, everything helps!

If you wish to donate crypto you can use one of the currencies underneath

BTC
13FTb6vns9ggPVJU3zDvvcpUbRFfvuHgeh

BCH
qqv2c3gp2y54q3hu5ksm8uzq8wqa6vm2r5ud8ks5fl

ETH
0x0b1e6329667ff3ea374bdaba4c6dd44f5d37c4b5

LTC
LMUQrKEcwovjeHzdE8DECdtEodcwz1RPWZ

XLM
GAKYYLXBQZRNKGLMRKYGTME35LK2OLXY5DSZUXH36PZ4KHUVSREA7T45

XRP
rnWASZJ267RHaMyeqCrmYAq3DxLdp5YHcy

Need Help with the project?

Send your inquiry in the form bellow and I’ll be back to you as soon as possible.
Thanks!

Be the first to know about this and upcoming projects!

You have Successfully Subscribed!