Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Madelyn TSerah PetersonTrue
Published © GPL3+

phyHarvest: Shredding Hunger, One Donation at a Time

Put together a food drive box that weighs, tracks and encourages people to support those in need.

IntermediateWork in progress24 hours82

Things used in this project

Hardware components

PHYTEC phyCORE-AM64x
Board will come with Ethernet cable, serial to USB cable, micro SD card, 12V power supply and SD card reader. All of those will be needed. Here is a QuickStart guide: https://docs.phytec.com/latest/phycore-am64x/quickstart/index.html
×1
4pcs 50kg Load Cells w/HX711 Amplifier AD Module
Comes with 4x load cells therefore only 1x kit needed.
×1
I2C OLED LCD
Only need 1 display for this project. 128X64 Pixels . 4-pin, 0.96" screen.
×1
22 awg Wire
These are to extend the load cell wires around the housing. About 3ft will be needed. 4x Different colored wires would be helpful but not necessary.
×1
M3x12mm Screws
To connect phyCORe-AM64x kit and load cells to housing
×10
M3 Hex Nut
To connect phyCORe-AM64x kit and load cells to housing
×10
M2.5 Hex Nut
To connect HX711 module to housing
×2
M2.5x6mm Screw
To connect HX711 module to housing
×2
M2x6mm Screw
To connect I2C display to housing
×4
M2 Hex Nut
To connect I2C display to housing
×4
Plywood
(Optional) 12 x 18 inch to add stability to bottom of cardboard box housing
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
(Optional) 4x for I2C display to phyCORE-AM64x kit. 4x for HX711 module to phyCORE-AM64x kit. Wires can also be directly soldered as well.
×8
Heat Shrink Tubing
(Optional) Adding protection around solder joints so that exposed solder does not touch
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
(Optional) Need 4x halves total. These will connect the 4x wires from load cells to HX711 module. Wires can also be directly soldered onto module as well.
×2
Large Cardboard Box
Main housing for donations. We used a triple wall corrugated box that was approximately 3x2.5 ft. 10lbs with everything on it.
×1
Large Wood Screws
These will be used to connect the plywood to the cardboard.
×4
USB Speaker
×1

Software apps and online services

Github account
Linux Machine
Used for building BSP and flashing SD card. Recommend: Ubuntu 20.04 LTS, 64-bit Host Machine If using a virtual machine, VMWare Workstation, VMWare Player, and VirtualBox are all viable solutions.

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
For connecting load cells, HX711 module, I2C display pins
Solder Wire, Lead Free
Solder Wire, Lead Free
For connecting load cells, HX711 module, I2C display pins
Drill / Driver, Cordless
Drill / Driver, Cordless
For driving screws into housing
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Heat gun or Hair dryer
For heat shrink tubing
Solder Flux, Soldering
Solder Flux, Soldering
Tape, Blue
Tape, Blue
3D Printer (generic)
3D Printer (generic)
1.75mm PLA Filament

Story

Read more

Custom parts and enclosures

patrick3345's Load Cell Brackets

These are needed to secure the load cells to the bottom of the food drive box.

Shredding Yeti with Soup

PNG of Yeti used for the front of box.

Schematics

PBA-C-25-1566-1-004-X27_release

Use this schematic to assist with pins on the expansion header (X27) available on the development kit.

Code

meta-HolidayFoodDrive

This meta layer enables the Holiday Food Drive Demo on the phyBOARD-Electra (and can serve as a reference meta-layer for preparing production-ready software images) Verified using BSP-Yocto-Ampliphy-AM64x-PD23.2.0 Requirements: - PCM-072.A2 (HS-FS SOM) - SSD1306 OLED Module (I2C LCD) connected to I2C1 - Load Cells and HX711 Module connected to GPIO0_18 (DOUT) and GPIO0_83 (PD_SCK) - USB Speaker Meta Layer provides: - dependencies for AWS GreenGrass: https://docs.phytec.com/latest/phycore-am64x/3rdpartyintegration/aws-gg.html - systemd service to poll the weight scale and display the weight on the I2C display - systemd service to poll the weight scale and play X-mas music when a change in weight is detected In order to enable this: bitbake-layers add-layer <path-to>/meta-HolidayFoodDrive Enable the layer and simply rebuild the BSP: MACHINE=phyboard-electra-am64xx-2 phytec-headless-image weight-scale.service and weight-scale-sound.service (systemd services) will be enabled and running upon boot (just need the hardware all connected-up for this to work)

Credits

Madelyn T
5 projects • 4 followers
Serah Peterson
4 projects • 3 followers
True
1 project • 0 followers
Thanks to Indrek Luuk, Hoan Nguyen , and Nathan M. .

Comments