There is something missing on the rotary table, and that something is a zero position, or as we call it on CNC machines, a reference point. Because the rotary table rotates infinite, there must be a way for the CPU to know at least one point of the cycle. If the CPU knows one point, then it can calculate all other points, as it knows already that the stepper motor has 200 pulses per revolution and ratio of the motor to table is known.
So, here is how the reference point will be detected:
This is the contact of a hacked battery holder
I drilled a M4 hole
And bended in a right angle
I screwed it on the gear of the rotary table
This is how the metallic part is placed.
This metallic piece rotates with the cup holder. Then, i got an IR beam cut pair that i hacked from an old printer last year...
This is the IR pair that i got.
These are some of the bases hacked from the printer
i selected one and with a pair of pliers...
... "mod" it a little bit to fit my needs
The IR pair fits fine on the modded base.
I grooved a pocket for the wire
The base with the sensor will fit there
Now, here is how it works. As the cup holder of the rotary table rotates, the metallic part goes through the IR LED. Whenever this happens, the IR pair will send a signal to the CPU. This way, the CPU will know exactly where the rotary table is.
To test if the IR pair works well, i connected it on a breadboard with a red LED. As expected, it works with extreme precision (as always, click images to enlarge):
The metallic part is not between the IR sensor and the LED is OFF
The metallic part is between the IR sensor and the LED is ON
@Alex In Greece during the Ancient times there was this saying: "Oyden monimoteron ek toy prosorinoy" which means that "nothing is more permanent than the temporary".
But now that you said that again, i think i should restart this project, shouldn't I? Hopefully within this year.
Hi you have a nice coffee Instant Cold Coffee Machine but you wanted to use a fridge for cold water but no water cooler that you use waron also in coffee automaaten is where you can get I know old water out of if not the name but it can look for you we have that built-in devices greetings alex
Hello George. Regarding the elements, these are hardware wiring to indicate wire connections between the modules. The orange boxes indicate wires coming from the output module (Digital Output Module - DOM), and the green indicate wires going to the Digital Input Modules. Notice that for example, from module "Rotary table", 4 wires comes out, then 2 of them arrive from the DOM and 2 goes to the CPU.
As far as the diode is concerned, this is only for polarity protection. It is the same as the D2. But you are right, It is not necessary and i may not put it after all.
I think your architecture diagram (first figure) is slightly confusing, because it seems to include elements of code (the elements above the CPU) with hardware elements. Ideally, you would have a system-level block diagram detailing your hardware and a separate functional block diagram to describe your code. If I'm misreading your architecture diagram, feel free to ignore this.
Secondly, looking at your reset circuitry, I see you have a 1N4148 diode between your microcontroller pin and your ICSP header (pin 1). I'm fairly certain this diode is not necessary, so you may want to double check that.
Frappé has become very popular here in the States. The difference is we use fresh coffee grounds to make coffee then we chill the hot coffee. But we tend to make more fresh coffee here while Europeans tend to make more instant coffee.
To serve we pour some in a glass and add chipped ice.
We also tend to add flavors to our frappé in the States. We can't leave a good thing alone - we have to tinker with it to make it more sellable.