From Hacking to Engineering: Arduino Powered Packaging Machine

March 03, 2022

from-hacking-to-engineering--arduino-powered-packaging-machine  Facebook  Twitter  Google +  
  vidposter.jpg

 Well, it's happened. Mayans was right about doomsday, just miscalculated 8 years earlier. We experienced an immersive sci-fi movie scene. Everyone stuck at home and cook bread. Also i stuck at workshop for weeks and tried to resurrect 20 years old non functional analog packaging machine by wiring and coding. After two years i had a chance to document the project hence everything become normal again.

 The Concept
 To whose isn't familiar with this kind of machines, let me give a quick brief: There is a three phase 380v AC motor with 1/60 reduction starts to rotate when electrified and mechanical switches on crank mill arranges the timing of other motors like product filling and paper feeding. No electronics.

 Modernization
 I did the entire wiring from scratch and developed a quick sketch in arduino to entirely take over the timing control in four phases:
 
 1: Mill run to open blades
 2: Mill Stop, Feed paper
 3: Paper Stop, Start filling
 4: Stop filling, Mill run to cut paper
 
 Technical Challenges

 - Sensor voltages: This kind of machines completely driven by 220v AC sensors, first i have to reduce them to trigger 5v, so i installed mini 220v relays to sensor inputs and send ground signal to arduino by using it's internal pull-up resistors.

 - EMI Interference: I had to remove AC contactors and replace them by 220v SSR relays, they're misfiring on idle but that's acceptable. 

 - Torque & Power changes: Currently engines are driven by time, but time is also not constant. Engine should turn in exact same rpm on every cycle but it's not, so i have to implement arduino compatible 5v ttl sensors and do the all operation based on sensor inputs instead blind timing.

 - Application Crash: When you start to use dynamic arrays in C language you quit your small safe pond and dive into hardcore oceans of microcontroller. In those oceans also you should deploy more protection and failure scenerios. Let's say you're changing the paper, machine suddenly start itself and cut your finger or process froze exactly on blades closed and starts a fire. I'm considering a secondary eeprom module to pick up application state and sensor values in case of crash or reset. not implemented yet.
 
 Source Code
 I uploaded the first two project attempts into github, now working in third version to keep it more stable. you can find the repository in here.

  Fuck Spam
5tcZdreXOjMqTIlB@hYzRW3Vp.org
LFOcl59myUTHX1gQ@XhwF82mN.com
kxoPS7NjC2hZQmlU@5PshdNF0.net
cYZRvUeMx3s8KNli@wW9JmQ26.gov
xSgZLbrp17UtcYiG@lcFCPWZx.org
2169dzWJug7C5eVM@SKbcqgIN.org
4TaMglZmioXLstuP@AbBmaZHJ.gov
5RmYdZDSkvtQbacV@tcWAXOis.com
5KtTDsubWAJXzyYr@f6gcbpq3.com
A7aVTj3oQ8RKevFZ@Dz3wRGb2.net
Bo3Uq0rbAu8imjJK@7U1xrKaT.com
SAvtDHlUmOTIBNuh@AcOuSUrD.org
lYwZP0anfVLEviFO@L0HvcRi9.org
0eWNyuUL5T3mzVwx@fxQHOnX4.com
RTYus7pS1IygA0vz@r0LbEPot.net
mdViUNXMeG7bDBvY@r3EsYkiu.gov
tEGg6hQafp5q4U8b@PDU2qnds.gov
gTKkxQG839wZEfXY@8AMlXoa5.org
i1x4cSBJHIgbrPEn@2d8WTBAb.com
KThD0Or1LY5qBnRx@8xeYcktP.net
6qitplAyezjY9Wcu@dXDqFoHU.net
KoO6h8ELxfnuZpvz@8JvA3GyF.net
5a9n6lWZhPLgTMko@CqAU1x2b.org
o9ZK7BMlPU5VxEzQ@IzlujW8b.com
w8UDzsOB7Qp5T61Z@iI8vfURY.net
v6Xfdb2uVTqx8Zno@f6qF15LA.gov
49YleuOrq1kVCpw5@whVu4gQ1.org
wOpf5PA8mNvUhZ64@floh6Awe.gov
dc1J5zQKYuPqOtbg@Y2BIrVkt.gov
ojFp7hUHDyuwSlsW@TgWoYUKQ.com
57IdeP3cYJKE1oC0@xXBZ5lMj.gov
V2tNFcy7TuRpizKY@uBfZDr2X.org
iR29GcTramlwoLSx@kfKUaL02.net
fa8Pex6wZL9p7nRc@o8yheilb.org
Fqsk7ICOAufy5wE4@NoMm5qkF.com
xgTcQBHEFm4IDoup@aJFmbq64.org
OVf3MuPHtD4jCn5a@nIZOErQS.com
rtGDKyfOAnB10NwC@jWoO1pBt.org
FibHa0Ac6PWyIQ85@4Txhe8kG.com
HmfgVupk24MDSyjc@Sb1Wk3lI.gov
i8SClgbF3XMEDs2A@LH4qdJnE.gov
DPgivkIHOparz3de@leDx7aU4.org
sSYjc2yopzVKvAXP@mXfQhp5D.gov
ghZSfMqV4L0iJesb@uMbe0VwN.com
cWiXbsDORZSjqwN2@1US2gYhP.gov
ivG2Q09UrXy5hqHW@hpQtxUnr.com
9sFbIQS0TYnkw8x2@c9gKS02m.gov
xqYmXCsMOy7Dt4eb@SDcbjCxL.org
  Most Watched

Fail of week: WS2811 VU-Meter

after the few commercial projects, i got some "me-time" at last. i sold all of my geek toys and some trash on ebay except few 8 Year, 3 Month ago


Strange signals on radio ocean

2012 was SDR year. some guys (Antti Palosaari ...

Project Judith - First hardware connection tests

trying to make a connection between my virtual assistant "Judith" and a PIC16F84 based 8-bit relay interface. first step to pc b...

New gadget on desktop: Air Quality Sensor

past year i was working with a material named ...

New gadget: wireless sensor station

After the spending months to commercial projects, taken few days of break and created a new sensor node for home network. it's s...