Dear @dumbfingers,Hi @Frank Bolleri
Thanks for your reply. Please take you time. I am also double checking my setup whilst waiting for some more components to arrive (inverter and demultiplexer)
So far I think I made a mistake on:
* not using an inverter
This explains why the motor would only run/turn at a higher frequency. Because without the inverter, the square waves will only have the positive halves.
I found that I may not phrased my question well and please allow me to rephrace my question:
What I would like to achieve:
use a 555 based function generator to generate square waves (and a potentiometer to adjust the frequency)
an IBT-2 as H-bridge, take input from the square wave, original battery as power source, to control the motor
So far I realised that I will need an inverter to be able to generate the square wave that provides both positive and negative halves.
May I ask:
what is the role of the hall sensor here? Is it acting as a feedback loop to tell the PWM to adjust its frequency?
Hello @Cdog330,Can you post some better pictures that have the power supply and motor and circuit in one picture. Or can you share the circuit? Trying to recreate.
the breadboard pictures in post 92.Hello @Cdog330,
unfortunately I have not that documentation. All work was done continuosly in the period septermber-december 2023, but I have just some photo more than what I have posted here.
To answer you in detail now I have to dismantle all and reverse-engineering my own work
But.. what of the 3 circuits presented you want to replicate?
Because the first one in post 90 (working fine and very satisfying, but without PWM) is really simple and it will be not too much complicate to write in a schema.
In that circuit you can varying the speed changing manually output voltage of the power supply.
If for you can be enough, we can try to do it.
Ciao
Francesco
Dear @Cdog330,the breadboard pictures in post 92.
I have all the components just hard to tell where some of the wires are going. I have the same Dyson motor as well.
Okay thank you for responding and your time!!Dear @Cdog330,
in post 92 you have a first breadboard assembly picture about PWM control using an external function generator and a demultiplexer IC to control the speed of the motor.
Then a second breadboard assembly picture showing the prototype of the final result based on ESP32 micro.
That is much complicated: there is the generation of the signal, control the display, reading the encoder... it require C++ development skills.
I am sorry but I have not saved any documentation of that projects and I have not enough free time to support you to the complete realization of the final product of post 92.
As I tell before, I suggest you to start enjoying the run of the motor with the very simple circuit in post 90
After that, it will be a funny exercise for you to play extending it step by step building your custom solution, tailored on your specific needs.
To realize circuit in post 90 you will need:
- SS41F hall sensor (you can purchase in Amazon)
- NOT ports integrated circuit SN74LS04N
- An H-Bridge module: in post 90 have used a different model compared to the one in final post 92.
The first used is nominally limited to max 15V, but practically it burns just approaching 13V, if I remember well.
Instead, the model BTS7960 High Current 43A H-Bridge Motor Driver is able to works at max 27V / 43A, which is perfect for drive that motor- 1 K resistor (for pullup hall sensor)
- necessary wires
- a power supply able to provide at least 5A - but if you want to run the motor at full power, maybe you can consider something more powerful (for that I have purchased a 20A power supplier) for powering H-bidge (power circuit)
- a second power source 5V for IC and hall sensor (logic circuit)
You have to mount the hall sensor in the original motor case, on the little black piece of plastic:
View attachment 325780
Wiring:
- GND from Hall sensor go to GND of logic circuit
- +VCC of hall sensor go to 5V of logic circuit
- OUT from hall sensor must enter in pin 1 of SN74LS04N - this will make the inverted signal available on pin 2.
(that IC have 6 NOT inside, you need only one - if you change input pin, then change to the correct output pin... read the datasheet...)
You have also to place here one side of the resistor 1k - the other side of the resitor have to go to 5V (to ensure pullup)- powering SN74LS04N by connecting pin 14 to 5V and pin 7 to GND
- connect GND of h-bridge (power circuit) to GND of logic circuit
- connect VCC of h-bridge to the 5V
- connect RPWM and LPWM of h-bridge respectively to pin 1 and pin 2 of SN74LS04N (I think follow exactly the order suggested is not so relevant)
The concept is to provide a continuous loop of 0-1/1-0/0-1/1-0... on that pins of h-bridge, syncronized with the motor shaft movements.- connect R_EN and L_EN of h-bridge to 5V
- motor pins have to be connected one to M+ and other to M- of the h-bridge module (even here, I think the order is not so relevant)
- the power supply (power circuit) have to be connected to B+ and B- of the h-bridge module (here order is important... respect polarity!)
I think that's all: if you turn on the power supply, motor have to run - if not starting by itself, try to help it with one finger.
I suggest you to start experimenting with 12V-13V then gradually increase... if I remember well this value is enough to make the motor start.
When you reach the motor to run, you can extend this circuit to do what you need; it is an awesome play!
If you realize it, post here you photos/video!
And if you have the time, do a work better than mine and post more documentation - it will be a gift for the next guy who come here.
Happy play
Francesco