Modifications

Sauter à la navigation Sauter à la recherche
670 octets ajoutés ,  24 octobre 2021 à 22:53
Ligne 55 : Ligne 55 :  
[[Fichier:IX4428-tech-details.png|640px]]<small><br />source: [https://www.ixysic.com/home/pdfs.nsf/www/IX4426-27-28.pdf/$file/IX4426-27-28.pdf fiche technique]</small>
 
[[Fichier:IX4428-tech-details.png|640px]]<small><br />source: [https://www.ixysic.com/home/pdfs.nsf/www/IX4426-27-28.pdf/$file/IX4426-27-28.pdf fiche technique]</small>
   −
== Montage avec Pyboard ==
+
== Montage IX4428 avec Pyboard ==
 
Dans ce montage, nous allons utiliser un {{pl|2318|IX4428}} la sortie X1 (Timer 2, Channel 1) de la carte {{pl|570|MicroPython Pyboard}} et un {{pl|1090|Transistor MosFet IRF540N}}. Le montage serait similaire avec un {{pl|2025|Raspberry-Pi Pico}}.
 
Dans ce montage, nous allons utiliser un {{pl|2318|IX4428}} la sortie X1 (Timer 2, Channel 1) de la carte {{pl|570|MicroPython Pyboard}} et un {{pl|1090|Transistor MosFet IRF540N}}. Le montage serait similaire avec un {{pl|2025|Raspberry-Pi Pico}}.
   Ligne 131 : Ligne 131 :     
C'est pas mieux ca?
 
C'est pas mieux ca?
 +
 +
== Montage IX4428 avec Feather ESP32 ==
 +
Dans ce montage, nous allons utiliser un {{pl|2318|IX4428}} la sortie 14 de la carte {{pl|570|Feather ESP32}} et un {{pl|1090|Transistor MosFet IRF540N}}.
 +
 +
[[Fichier:MicroPython-Hack-Mosfet-30.jpg|800px]]
 +
 +
Sur un ESP32, la valeur PWM évolue entre 0 et 1023 (0% à 100%) de cycle utile.
 +
 +
<nowiki>
 +
MicroPython v1.17 on 2021-09-02; ESP32 module with ESP32
 +
Type "help()" for more information.
 +
>>>
 +
>>> from machine import Pin, PWM
 +
>>> pwm = PWM(Pin(14))
 +
>>> pwm.freq( 32000 ) # 32 KHz
 +
>>> pwm.duty(1023) # 100%
 +
>>> pwm.duty(0)    # 0%
 +
>>> pwm.duty(50)  # 4.8%
 +
>>> pwm.duty(103)  # 10%
 +
>>> pwm.duty(512)  # 50%
 +
</nowiki>
    
== Où acheter ==
 
== Où acheter ==
29 917

modifications

Menu de navigation