Vol5: System Integration

The first steps in making the final project come to life


Requirements

Individual Assignment
  1. Design and document the system integration for your final project

Softwares 💻

  1. Fusion 360
  2. PrusaSlicer

Lunar Phase Tracker

It's a moon phase tracker that tracks the phase. It's largely insoired by Simone Grietz's video and her collaboration with dina Amin. It used the mechanisms of flap display. It uses an API which sends the state of the moon. The device will have an interface from which you can enter your desired date and once you click enter the state changes. The device will have a display that shows the name of the phase

System Diagram


Code Logic

I used Eraser.io. Here's the prompt I used:"I want to create a code logic schematic of lunar phase tracker that takes the phase name and moon age from an online API once the user writes the date in a user interface, The data is sent to the ESP-WROOM-32. the code will run as follows once the device is opened a led neopixel will light up in a certain sequence. At the start the stepper on the tracker rotates until the variable called homing = 1. if not it doesn't move. Then once homed The user writes a date in a Website which will act as the user interface then ESP-WROOM-32 will send a request to the API with the set date. The esp checks if there's a return if not then return error message on the website. Then the returned data is a JSON file so it will be parsed and two values of moon age which is integer and the name of the phase which is a string and are stored in two variables that have the same name and defined at the start of the code. then the stepper motor rotates number of steps that are associated with the returned moon age which then moves until it shows the moon's current phase on the flip card."

Mechanism & CAD

It largely relies on this open-source flip display project.

I started by making a cardboard prototype and had an intuitive sense of the mechanism.

extrude

Tried pocesses

Code

In Embedded Programming week I tried to get Mars's data from NASA horizon API: Here

In Input devices I tried capacitve touch sensor which in my system will serve as the "homing feature".


What materials and components will be used?

Component & Materials Quantity Link/supplier Price
3mm Wood scraps Local distributer --
3mm Black Acrylic 100*60cm 0.5 SpiroGlass 1500EGP
PLA 0.25KG From the lab 250 EGP
Capacitors ~5 available at the lab 0.5 EGP per unit
Resistor 10 available at the lab 0.5 EGP per unit
ESP32-Wroom 1 Here 340EGP
Switches 2 available at the lab 2EGP per Unit
NEMA16 Stepper Motor 1 here 245
TMC 2208 1 Here 195 EGP
PinHeaders ~ available at the lab --
Voltage Regulator 1 here
Adaptor 12v 3A 1 available at the lab --
Screws and Washers (M3,M4,M5) 1 Available at the lab ~50ُ
Copper tape 1 Available at the lab ~~
LCD I2C 16x2 1 available at the lab 0
Total of 2,534EGP

What tools and processes will you use?

  1. 3D Printing: Printing the gears
  2. CNC Milling: milling the pcbs
  3. Laser Cutter: the Frame & the flaps

list the tasks to be completed.

  1. Make a Cardboard Prototype
  2. Try the flap movement.
  3. Read and parse the data from the API & Control one motor.
  4. Integrate an E-paper in the code.
  5. Design the project on fusion 360
  6. Fabricate the Gears
  7. Fabricate the enclosure
  8. Design PCB for the main pcb including the stepper drivers
  9. Fabricate & Solder the pcb
  10. Make an interface with Javascript on the web?

make a schedule for doing them over the month of May.

  1. Week 1: Make a Cardboard Prototype
  2. Week 1: Design and laser cut the flap mechanism
  3. Week 1-2: Read and parse the data from the API & Control one motor.
  4. Week 2: Design the project on fusion 360
  5. Week 2: Fabricate the Gears
  6. Week 2: Design PCB for the main pcb including the stepper driver
  7. Week 2: Design the project on fusion 360
  8. Week 4:Integration & Testing & Troubleshouting
  9. Week 4: Slides & Documentation