Hello everybody!
My name is Arne, i live in Germany and I am new to this forum. I hope you can help me with an electronics-problem I have with my Arduino Nano:
I have equipped my Espresso machine, a Gaggia Classic, with an Arduino Nano to control the timing, the power of the pump and to measure the pressure on the coffee.
This is my Setup:
I have glued the Controller together with a 230AC to 5VDC power supply, a Relais and two terminal strips to a 3D-printed Plate. In Addition to that, I have connected a Rotary Encoder and a 0,96" IC2-OLED-Display to the board. The power Adapter gets the power from the machine´s main wiring and the 5V and GND ports on the adapter are connected to the terminal strips, from where the voltage and Ground is distributed to Controller, Relais, Encoder and Display. The display is connected to the 3,3V-pin on the Nano instead of the 5V supplying terminal Strip.
Finally, I am using Pin D9 to Control a power Regulator, which is connected to the Membrane pump. The board an the Encoder are located inside the steel Body of the machine, the display, and the power regulator including a PWM to 230V-Signal-Converter are mounted outide at the back of the machine.
The Controller is programmed to display the user the currently set duration for which the machine will pump water. The time can be changed by turning the encoder. When you press the encoder, it will turn on the relais, which will turn the pump and Solenoid Valve of the machine on and will let it run, until the set time has run out. In the meantime the Controller will tell the power Regulator via PWM to Change the pump´s power in a certain way. When the time is up, the Relais will be turned off and the contoller returns back to displaying the set duration for the next shot.
This is my Problem:
I ran the Setup quite a while without the power regulating element, just to have a shot timer, and it worked just fine. Since I have upgraded it to power Regulation, I frequently have the Problem, that the Controller crashes. The display freezes or Shows weird artifacts and the Nano does not respond to Encoder interaction anymore, so i have to turn the power off. It only happens, when the pump is working; when I turn the power of the pump off, the Contoller always works fine, but when the pump is running, this is likely to happen.
It does not always happen, though, sometimes it goes trough the loop just successful and sometimes the diplay turns black and stops working for a while, but the encoder and power regulation still work fine.
I don't have a deep understanding of electronics and I find it hard to see a predictable pattern in this. It seems to rise and fall with the pump, but why did it not happen when I just used the Controller als a Shottimer? Has it something to do with magnetic shielding or fluctuations in the wiring? I just don't know where to start looking for the errors...
I hope somebody can help me, i would appreciate it. I hope, it is all comprehensible; i do speak english, but i have never written a technical text like this in english.
Greetings,
Arne