L298N Dual H-bridge motor driver
To use this chip in your project, include it as a dependency in your diagram.json
file:
"dependencies": { "chip-l298n": "github:drf5n/[email protected]" }
Then, add the chip to your circuit by adding a chip-l298n
item to the parts
section of diagram.json
:
"parts": {
...,
{
"type": "chip-l298n",
"id": "driver1",
"attrs": { }
},
The actual source code for the chip lives in src/main.c, and the pins are described in chip.json.
- Wokwi Mega with dual steppers and encoders -- dual DC motor simulation with scopes
- Wokwi Uno with L298N driver using tabbed files -- with LED-motors and scopes
- Wokwi Uno with L298N driver using github dependency -- with LED motors and scopes
- https://github.com/drf5n/Wokwi-Chip-stepper-esc -- for a stepper-ESC custom chip to control a stepper with PWM like a DC motor.
- https://github.com/drf5n/Wokwi-Chip-TB6612FNG -- for a more efficient dual-h-bridge motor driver custom chip.
- github:drf5n/[email protected] -- Working release.
- github:drf5n/[email protected] -- nonWorking release? Enabled read-write workflow permissions per https://discord.com/channels/787627282663211009/954892209486966825/1274569798231130163
- github:drf5n/[email protected] -- non-Working release
- github:drf5n/[email protected] -- non-Working release
To get the Wokwi build script working to build the necessary chip.zip file for distribution with a release so Wokwi can pick it up
- enable the repository settinggs for wokflow permissions to be read-write
- make sure the .github/workflows/build.yaml is in the repository
- commit
- make a vN.n.n tag:
git tag -a "v1.0.5" -m "build.yaml"
- push the tag to github:
git push origin tag v1.0.5
Refer to https://discord.com/channels/787627282663211009/954892209486966825/1274569798231130163 for a little discussion
This project is licensed under the MIT license. See the LICENSE file for more details.