Add Bounce to digital signals
- Modes: Off, Rise, Fall, Both (0-3)
- Duration: 50-5000 microseconds
- Default control settings can be changed in
diagram.json
To use this chip in your project, include it as a dependency in your diagram.json
file:
"dependencies": { "chip-bounce": "github:Dlloydev/Wokwi-Chip-Bounce@1.0.6" }
Then, add the chip to your circuit by adding a chip-scope
item to the parts
section of diagram.json
:
"parts": {
...,
{
"type": "chip-bounce",
"id": "bounce1",
"top": -37.38,
"left": -61.6,
"attrs": { "mode": "3", "microseconds": "1000" }
},
The actual source code for the chip lives in src/main.c, and the pins are described in chip.json.
Test a PWM signal with bounce added.
This project is licensed under the MIT license. See the LICENSE file for more details.