Feldsalat a écrit : jeu. févr. 06, 2020 5:10 pm
There are also INA226, which are specified up to 36V. The measuring range for the current can be easily increased with another or an additional measuring resistor.
Yes it's a good final solution for the voltage
I'll buy some boards on aliexpress .
Otherwise, yesterday i worked on the INA219 and the current PID ( currently, just Proportional ) and the values to displaying ( Volt / Amp ) on the display.
https://photos.app.goo.gl/muZri4G2E9ypTbMS7
I put a variable resistor on the hotwire output . It was set at 50 ohm and changed to ~ 20 ohm on the video.
I has set the order current at 0.5A ( in the code, at the moment for the developement )
On the video we can see the PWM values change on the display (and on the PC) , when i lower the resistor.
The asservissement lower ( or upper ) the PWM to keep the output at 0.5A
in fact, i use juste a proportional for the PID. But the next step is to use the Integral and why not the derivating.
While taking into account the real time problems of the stepper and the UART
PS: Yes I "burned" my fingers a little at the moment on the vidéo xD
----------------------------------------------------------------------------------
Oui, c'est une bonne solution finale pour la tension
Je vais acheter des cartes sur aliexpress.
Sinon, hier, j'ai travaillé sur l'INA219 et le PID (actuellement, juste le proportionnel) et les valeurs à afficher (Volt / Amp) sur l'écran.
https://photos.app.goo.gl/muZri4G2E9ypTbMS7
J'ai mis une résistance variable sur la sortie du fil chauffant. Il a été réglé à 50 ohms et changé ( pendant la vidéo ) à ~ 20 ohms .
J'ai mis une commande de courant à 0,5A (dans le code, en ce moment pour le développement)
Sur la vidéo, nous pouvons voir les valeurs PWM changer sur l'écran (et sur le PC), lorsque je baisse la résistance.
L'asservissement abaisse ( ou augmente ) la PWM pour maintenir la sortie à 0,5A
En faite, j'utilise une proportionnelle pour le PID. Mais la prochaine étape consiste à utiliser l'intégrale et pourquoi pas la dérivation.
Tout en tenant compte des problèmes en temps réel du stepper et de l'UART.
Voilou voilou
PS: Oui je me "brulé" un peux les doigts pendant un moment xD