-
Install flask (make sure it is ver 2.2.2 or newer otherwise --app feature won't work, check this by running flask --version):
pip install --upgrade Flask -
Install reddis:
pip install redis -
Install flask_caching:
pip install flask_caching
-
Activate the Virtual Environment
-
Navigate to the location of the virtual environment:
cd /home/git/transfer_station -
Activate the virtual environment:
source foobar/bin/activate
-
-
In another terminal, start the redis server:
redis-server -
Run the code through flask (on the previously setup virtual environment) and open the outputted link (first one is for the local machine, second is for a different machine on the same wifi):
flask --app api_step_motor run --host=0.0.0.0
Pin Index:
- ENA -> Enable pin. When low A4988 is enabled, when high A4988 is disabled
- RES -> Reset pin
- SLP -> Sleep pin (connected to RES so SLP triggers code RES)
- STP -> Step. Reads how many steps requested for the step motor to take
- DIR -> Direction.
- VMT -> Energy supply to power step motor
- GND -> Ground
- 2B, 2A, 1A, 1B -> Control for Bipolar Step Motor (Power, Step, Direction)
- VDD -> Power for A4988
Pin Index:
- 2 -> 5V Power to supply A4988
- 6 -> Ground
- 15 -> GPIO22, programmable pin
- 16 -> GPIO23, programmable pin
- 18 -> GPIO24, programmable pin
Any GPIO can be used as they are all programmable
The system is composed of 4 core components, these consist of the tray, tray platform, step motor rail system, and the mount. All components were printed with PLA plastic, and default 3D printer settings. Screws used were the default ones that come with the Hamilton Star, and the default bolts that came with the incubator mount. This is holds the 96 well plate (or equivalent size) when delivering the plate to the incubator, and vice versa. This raises the tray to the needed height for the incubator to be able to reach the plate. This comprises of a stepper motor, connected to a rail system (screw) that spins moving a cart that is already on the screw. This is what the stepper motor rail system is screwed onto connecting/supporting the stepper motor rail system on the incubator. The final assembly consists of:-
Screw mount onto incubator with M6 x 12mm screws (x2)
-
Screw stepper motor rail system to the mount with M3 x 12mm screws (x4)
-
Screw tray platform onto cart with M4 x 8mm screws (x4)
-
Slide tray onto pegs on tray platform
-
Mount
-
Tray
-
Tray Stand
2. Screws
-
M6 x 12mm (x2) -> Used for screwing mount onto incubator
-
M4 x 8mm (x4) -> Used for screwing tray platform onto cart
-
M3 x 12mm (x4) -> Used for screwing rail onto mount
- A4988 Stepper Motor Drive -> Needs seperate power cable
- Raspberry Pi Zero 2 W -> Needs seperate power cable, and male header pins to solder on
- Stepper Motor Rail System
- Powered USB hub with mini USB connector -> Used for connecting keyboard and mouse to raspbery pi zero 2 w










