Designing my Dice Board
Creating the Schematic
After downloading and installing the KiCad files I was ready to design my dice board.
As stated earlier, I wanted to create a physical board for my simulated dice project from
Week 4 .
I started by adding and orienting 7 leds, 8 resistors, 1 button, and 1 xiao esp32C6 board.
I used my Wokwi simulation build to help wire the board.
After wiring everything up, I ran the electrical rules checker and had a handful of issues.
The quickest and easiest error to fix was the overlapping wires at the top on my ground.
Chamile actually recognized the symbol as she had just solved this issue on her schematic and she shared with me that I needed to delete the wires and find the overlapping one.
I did so and rechecked and the error was gone.
The next issue was all of my crossing wires.
Initially, I wired up the project the same way I did in my simulation, however I realized this wiring would not work on the board due to the wires crossing in many places.
I could have used zero ohm resistors as jumpers to solve this issue, I also could have moved the resistors I was already using to better locations, but I decided to rewire the board instead.
Wiring this board without crossing wires was like the worst brain puzzle I could have done.
I kept thinking about those dot puzzles/riddles that have you connect the dots without crossing the lines.
This was exactly what it felt like:
Typically there's a clever solution to these kinds of puzzles.
Since wiring this board felt just like the puzzle, I kept thinking like how I would solve this kind of puzzle.
But the clever solution wasn't easily coming to me. I took it one line/component at a time and eventually got it all wired up.
I thinkg I over thought it too much and overcomplicated the wiring process.
Thinking back, putting in the zero ohm resistors would have been quicker, but I am happy with figuring it out.
This new wiring requires me to go back to my dice program and adjust the code so that each LED has its own separate control pin.
This was one of the few ways I found worked to have no crosses on the LEDs.
To ensure no other crosses I also had to adjust the button pin from pin 8 to pin 1.
Recoding my dice program with this new pin setup will be a problem for future me.
I ran the electrical rules checker again and most of my errors cleared except for the warning I got about the footprint library for the xiao board.
I went back to the footprint library, followed the steps again and tried installing the library again with no luck.
Then I tried editing the footprint I was able to view, with no luck.
Finally, with a suggestion from Chamile who had a similar issue, I right-clicked on my xiao board in my schematic and chose the Edit Main Fields > Edit Footprints.
Here, I loaded the footprint libraries directly and was able to select the ESP32C6 DIP option instead of the Xiao Add-On that was the only option I had when I went into the assign footprint menu.
This solved my rules check error and I was now able to see my board in the PCB editor and connect wires to it.
With the add-on board I was able to add it directly and see it in the PCB editor but I wasn't able to connect anything to it.