Help needed, electronics – shredder auto-reverse

hey there, as part of a v3.1 update we’d like to finish the ‘auto-reverse’ function. for now it works only with 3-phase inverters in ~120 Euro range since they have an error signal when stalled or over-torque occurred.

I’ve made it all ad-hoc so all control switches (direction, speed, emergency switch, 5 quick speed-dials) can be used without the add-on.

however, I get a little stomach pain thinking to ship this unit to countries with 40+ degrees Celsius, high humidity and dust.

Anyone has a recommendation for a solid Arduino based unit as well a 5V relay bank ? I was even thinking to integrate a Raspberry-PI with touch-screen for metering/monitoring but I have little trust in this stuff when it comes warranty or run-time for 2-3+ years. The entire unit is stupid simple and currently below 10$; All it needs are 100 lines of Arduino code and some good enclosure. I’d also prefer a complete analog solution but my skills on that is too little to make a good PCB.

For single phase motors, I can’t recall the name of the sensor but i guess any optical encoder like sensor will do; i am just worried about high – power relays …

@sensibill, i think it’s your terrain; eventually you have a recommendation for a long lasting arduino based unit given the mentioned conditions above. eventually i am just pessimistic but most of this cheap stuff doesn’t last long in my hands 😉
g

Hey everybody, we keep maintaining & documenting the new auto-reverse component together with the shredder & extrusion controller in the new library  :https://library.precious-plastic.org/machines/hal.html

Furthermore, the auto-reverse is pretty simple now and you can apply this to any shredder but you can also use it to detect jamming for your extruder.

There are still some todos as supporting other Arduino boards but it’s easy to change in the new PP firmware : https://github.com/plastic-hub/firmware/tree/master/shredder-extrusion/zoe

god speed,
g

new changes after using this device for some days :

– added a config variable (IGNORE_FIRST_DIRECTION) to prevent sudden shredding (and possible bad surprises) after power up
– some disco like flashing on the status LED bank during auto-reverse

next :

– extra button to set it to extrusion only mode (no move = fatal)
– interfacing a second circuit / micro controller – to dial in better and faster extrusion parameters or profiles (we need your data !) – this will take a while  since I have to hook up a touchscreen (also for 3d PET print and/or extrusion as automatic injection,…) on a RPI yet.

fun stuff – hacking PP as nobody is watching but from what I’ve seen, it’s pleasant and feels way more safe as before 🙂

Here some shredding tests as video (320 Nm). Pleasure to use, you just keep filling the hopper. Now I am just amazed how patient people must be to work without auto-reverse. With a little more tuning this should speed up things even more. time to update the performance tables of v3 and I am so glad that some folks can use the shredder for basket play, for real 🙂

getting there, usability and fault tests unveiled a few surprises but other than that, green light for using the IR sensor.

Since this baby is the first micro electronic controller driven product & also the first open source addon (or standalone) on the Bazar, we think it deserves a name : the ‘HAL 9000‘ (youtube video) ! Not to be confused with the HAL 9000 HD which can’t be deactivated at all, only tossing it in space may help 🙂

next updates for the IR sensor mount coming next Tuesday. Still waiting for v4 details to get this roundish for all PP versions …

In the picture below you also see :
– safety tests for cat tails and rotating couplings = all ok, nothing happened
– humble use of orange, we heard that orange is too seducing for some folks
– ‘project zoe’ – our best seller – soon going fully open source as well – after 10 months in production there are amazing details to be shared

changes :

– support for IR sensor as rotary encoder added: works pretty good now (check wiki for CAD files) and I consider this the more easy and stable. one more open challenge is to package the encoder disc and the sensor into an easy to mount addon for v3, v3.1 and v4

– reset button better integrated with status lights
– added support for disable/enable auto-reverse button
– code adjustments after long run tests

Hey,
– I guess it’s the normal sensor, with a blue, black, brown wire
– I hope you disabled everything else for now (IR, TEMPERATURE, HALL, STATUS)
– Just to make sure, the proximity sensor is setup like this (https://www.instagram.com/p/B1lpYs0DVj8/)
– I hope you wired it like this (https://precious-plastic.org/home/library/components/shredder-auto-reverse/) , more or less

I’ve setup a dedicated discord server for support and extra-terrestrial visitors like myself , here the invite : https://discord.gg/tYnb99h (I will be there 8pm, berlin time)

Ah, i dont understand why you’d get banned for things like that, im sure admins have their reasons, maybe something else?

OK, i had a bad toggle switch so that explains quite a bit.

I’m only having trouble with the proximity sensor side of things, maybe you can help? In the serial monitor it shows all switch positions beautifully.  Sensor value just keeps increasing on its own regardless of what the sensor is doing. Even if i simulate movement with a magnet and my proximity sensor, the system is indicating that its jammed and will run two unjamming cycles (reverse, forward, reverse, forward, halt). I’ve changed the input mode from input_pullup to just input and it has no effect.  I have continuity from sensor wire to arduino pin.

Please tell me I’m missing something and you know exactly what it is. 🙂

@bulegila, yeah. The hall sensor might get a little complicated. I am adding support for  another one today : ‘LM393’ – optical sensor – which is capable to measure  up to 700RPM. I consider this one to more easy and reliable over all the others; only problem is that you need a disc with at least 15 holes – but easy too.

I am updating the wiring diagram this night, hang on. For the contactors : I ordered those and try my best this week but as long they are accepting a low-voltage – it’s no different than controlling the VFD – over a relay. The 3 pos switch pins btw. are wired internally in the opposite direction.

I am setting up a new discord – server – ‘PP Help & Support’, and some extra channels as ‘culture’ , ‘live’ and ‘eletronics’. Last time I asked for such channels – we’ve got banned, lol.

status :
– custom PCB idea ditched for Arduino compatible DIN rail PLC
– draft design for complete shredder & extrusion controller done
– SSRs, power supply and other components going to be replaced for DIN rail version
– extrusion : i will try a multi-channel PID with external controller, ie: touch-panel (profiles & settings)

bitter pill : such industrial controller, subject for certification will add 400-1000 Euro to the material bill.

features : auto-reverse (hall & rotary encoder), over – torque & heat motor protection, along with additional breakers (for folks who keep trying in case of  failures), hopper & enclosure open – sensor, metering (energy alarm and/or profiles ? )

next : investigate certification, the enclosure is already IP – 65

see you in a bit

@s2019 : I haven’t used it til now and preferred to wait for more details on this approach. From what I understood it’s measuring amps and looking at the wiring (do I need special glasses to read it ?, see more project page) there are quite some more steps to do (including tuning, also code tuning to make it more effective). I would consider this being complicated and somehow dangerous for existing users with no prior background… The speed sensor on the other side just needs the magnet with 4 inducting stand-offs to work; and from what I saw til now; it just works – you can bid your cat on it. The hall sensor is great as backup and over-torque protection. Also, for now I consider this a nice experiment which turned out successful – now it’s time to get this boxed – rather not so funny after all, except you’re watching enough cat videos on the side 🙂

Why isn’t the hall sensor as simple as something like this and a small magnet? https://www.banggood.com/Hall-Effect-Magnetic-Sensor-Module-DC-5V-For-Arduino-p-76469.html . Plugs directly into arduino with 3 wires at 5V.

hey Stan,thanks. I am new to this too 🙂

– Voltage, yeah. this can get tricky. In this case it seemed more reliable to explicitly set the Arduino’s Voltage reference. At the moment it’s powered by the VFD via 24 → 5 transformer. Possibly I should try 12 V again.
– Hall vs Rotary encoder : trust me, you want them both just. The hall sensors needs exorbitant wiring; something I can’t leave existing users alone with. The rotary encoder is doing pretty well btw., it’s accurate and enables you fast and precise reactions. For now I have still to wait for recommendations for a good hall sensor. Also, the speed sensor needs no extras, just plug it directly (it wants 6+ V).
– Temp. sensor, sorry. It wasn’t in the picture but the Max6675 controller seems to hold up great; no false alarm since days. It’s the same thermocouple we use for anything else too.
– Housing:  yes, it’s just a box with plugs for sensors, speaker and VFD signal cables. In the bazar version with VFD included it will be open on the side since there is cooling provided from the VFD (all in one big enclosure). For the stand-alone – v3 upgrade version; yes, might be better to close this entirely; amazing to see where and how folks run their shredders 🙂

Anyway, still have to check all PCB options and from what I see til now the whole thing can be just 1/5 $$ & time wise of this very DIY version (which we keep maintaining).

thanks again,
g

I’m an arduino/electronics novice but here are some thoughts:
I thought powering the arduino with 5V, other than through the USB is tricky https://forum.arduino.cc/index.php?topic=271158.0 .
I’m not sure I would trust the header/jumper connections. You could use a Nano and mount it in a screw base https://www.banggood.com/NANO-IO-Shield-Expansion-Board-For-Arduino-p-963967.html . Or maybe just solder to the arduino and have the relay module provide the screw connections.
I wonder if for the overtemp you could use a simple thermostat module. Set the temperature and relay opens once it is reached something equivalent to this https://www.banggood.com/Geekcreit-W3230-DC-12V-AC110V-220V-20A-LED-Digital-Temperature-Controller-Thermostat-Thermometer-Temperature-Control-Switch-Sensor-Meter-p-1416355.html .
For cooling, you are just pushing signals through the box right? So maybe just some vent holes, or maybe not even that, keep things dirt resistant.
The two line LCD’s are pretty cheap but if you use a thermostat which displays temperature, then the rest could be status LED’s.
For the speed sensor, you could switch to one of the small cheap hall sensors that may be easier to find room for.
My understanding is that getting a low volume run through one of the Chinese PCB prototype shops is pretty cheap once you have a design.

Ok, going the long way getting this one done a little more appealing and viable I checked youtube and it unveils making PCBs with a cheap CNC isn’t that hard.

One can order the PCB with the provided plans soon. That leaves us with this tasks open :

1. design different enclosures – for all sensors (proximity as rotary encoder, temp. sensor for motor over heat and the hall sensor). That could be a simple one from the hardware store (annoying to do), a 3D print variant (about 1 day print) and a variant using CNC cutted acrylic plates (sandwich style) using hex standoffs and metal meshes for the sides which I like most since the cooler from the inverter can be shared within the same enclosure.

2. design the PCB and find all mentioned components again, for such design (Gerbel ?)
3. find an Arduino compatible micro-controller (recommendations ?)
4. develop single phase variant (just bigger relays)

No idea where the price is then but I hope it’s getting below 100E in the bazar. Needless to say having a good auto-reverse and other protections seems urgent to me. We had recently even a customer blowing up an extrusion motor – which I considered impossible. So this baby should rule them all.

thanks everybody  🙂
g

— forum bug — sorry for the double post

hey,
I so i tried to wire the first unit for a customer. I spend around 50 Euro til now and wiring took already 4 hours – not even finish (possibly another 3). From a business perspective this design doesn’t make much sense. I would have to charge 200 – 300 Euro for all (cooling, plugs and good cords for sensors, CNC cut enclosure – small as possible!) and it still feels like a toy. I don’t trust much those connections and an Arduino with screwshield would be in the 50 – 80 Euro range. On a 3D printer those connections seem alright though 🙂

Any ideas how to speed this up ? A custom PCB with screw sockets and a custom Arduino would be lovely.

hi,
this story turns out to be quite some fun 🙂

Change log :
– added optional inputs : hall sensor as done by @dirkvanvroeger as well a sensor for measuring the motor temperature. so you can use them all together. just activate them in the configuration file.
– added optional output : alarm sound. I am adding a bright alarm LED (which one ?) to signalize shredder failure so you can see that from far as well.
– updated documentation for a 24 V transformer version to supply everything with the  24V from the inverter.

open challenges
– proper wiring (screw shields ?)
– good enclosure (cooling?)
– interfacing for the settings, I am intending to set the settings via Bluetooth and the upcoming pp mobile app. There are LCD with touch keys shields but I am running out of input terminals and going for Arduino Mega is a little much except you want a little interface to enter shredded plastic/type, etc… and then read & upload via app the data …. I don’t mind; it’s fun 🙂

Hi folks,
The documentation & Source Code for alpha version has been uploaded here.

@dirkvanvroeger would be great to have this linked as alternative in your project.

Next iteration for more features comes mid of Sept.
– LCD for settings
– Temperator sensor for overheating
– Hall sensor for over torque
– Eventually logging/metering