Wokwi custom chip for L298N motor driver
Find a file
2024-10-07 15:01:39 -04:00
.github/workflows Add .github/workflows/build.yaml so github knows how to make the chip.zip file 2024-10-04 02:17:22 -04:00
docs Initial commit 2024-10-04 00:48:04 -04:00
examples/L298N_with_LEDmotors Initial commit 2024-10-04 00:48:04 -04:00
src Initial commit 2024-10-04 00:48:04 -04:00
chip.json Initial commit 2024-10-04 00:48:04 -04:00
LICENSE Initial commit 2024-10-04 00:48:04 -04:00
Makefile Initial commit 2024-10-04 00:48:04 -04:00
README.md Add See-also to stepper-esc and L298N custom chips 2024-10-07 15:01:39 -04:00

Wokwi-Chip-L298N

Description

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/Wokwi-Chip-L298N@1.0.5" }

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.

Examples

See also:

Versions

notes on making a Wokwi custom chip work with Github repository dependency

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

  1. enable the repository settinggs for wokflow permissions to be read-write
  2. make sure the .github/workflows/build.yaml is in the repository
  3. commit
  4. make a vN.n.n tag: git tag -a "v1.0.5" -m "build.yaml"
  5. 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

License

This project is licensed under the MIT license. See the LICENSE file for more details.