WEEK 8 - ELECTRONICS DESIGN

hero shot

IMG_7866 1.jpg

Pasted image 20240508110326.jpg
PINOUT OF MY BOARD

after WEEK 4 - ELECTRONICS PRODUCTION and WEEK 6 - EMBEDDED PROGRAMMING lets dive into learning designing and basics of how electronics works..

assignment

group assignment

  • use the test equipment in your lab to observe the operation of a microcontroller circuit board
  • send a PCB out to a board house

Individual assignment

  • use an EDA tool to design a development board to interact and communicate with an embedded microcontroller, produce it, and test it
    extra credit: try another design workflow
    extra credit: design a case for it
    extra credit: simulate its operation

group assignmnet

You can find our group page here and this week is here

basic electronics

basics of electronics is all about concepts like inductance, capacitance, resistance, voltage and electrical currents. and how we use this to control electrons via manipulating, storing, switching, selecting, steering, carrying or resisting them.

Pasted image 20240318084937.jpg

modern digital electronics starts with invention of transistor in late 20th century.

"the invention that changed the world"

designing

i have previous EXPERIENCE of using lt spice and proteus during undergrad.

here i like to explore kicad for this week as #NEILGERSHENFELD suggested and it is open source too.i have kicad already installed in my system. it supports mac as well.

doing the schematics

download the fab kicad libraries and add it on kicad directory. kicad repo is recommeding to
Make sure you have at least KiCad 7 or greater installed. It works fine with Kicad 8.

Store it in a safe place such as ~/kicad/libraries or C:/kicad/libraries

i created a new project file named "week 8".now go to preferences>manage symbol libraries
and add "fab.kicad_sym" files as as symbol library. SIMILARLY go to manage footprint libraries and add fab.pretty as footprint library.

Screenshot 2024-03-18 at 10.53.52 AM.jpg

Screenshot 2024-03-18 at 11.03.48 AM.jpg

open .kicad_sch file and start drawing schematics. i added each module and its minimum circuits
Pasted image 20240319115940.jpg

for the voltage regulator circuit i REFERRED the below circuit as REFERENCE for reference

Pasted image 20240319122337.jpg
from circuits -DIY.COm

the schematics is done . make sure you label all pins APPROPRIATELY.
Pasted image 20240318125744.jpg

ALSO MAKE SURE YOU ARE ADDING COMPONENTS FROM FAB LIBRARY OTHERWISE IT WILL EFFECT THE FOOTPRINT OF THE COMPONENTS

main KEYBOARD shortcuts for kicad:-
W - wire
A - component
R - rotate
command+l - label

NOW WE NEED TO PROCEED WITH ROUTING..

routing

so now we are routing the wires in such a way we need it to get it milled.click the pcb editor option to go to the window

Screenshot 2024-03-18 at 1.01.12 PM.jpg

in the pcb editor window all the components and footprint will be be collapsed. you need to route each component carefully without colliding and by following the design constraints.

Screenshot 2024-03-18 at 1.09.41 PM.jpg

route wire to the pads required. blue line indicates pads to be connected.

Screenshot 2024-03-18 at 1.28.24 PM.jpg

in the baord settings set the milling design constraints as we tested in WEEK 4 - ELECTRONICS PRODUCTION of the roland mdx.

Screenshot 2024-03-18 at 2.26.49 PM.jpg

when routing its always better to route microcontroller>power supply>bootloader burning pins > other pads

Screenshot 2024-03-18 at 5.57.01 PM.jpg

while routing if you CHANGED some setting in schematics always update it in settings

Screenshot 2024-03-18 at 1.24.56 PM.jpg

for usb c we are using custom usb c module DEVELOPED by saheen palayi. so i changed the footprint of the default usb c i added in schematic and updated the design.

Screenshot 2024-03-18 at 1.55.07 PM.jpg

Screenshot 2024-03-18 at 5.15.48 PM.png

there were some errors and unconnected ground for me. i corrected it and checked drc again.it came clean.

Screenshot 2024-03-18 at 5.56.55 PM.jpg

Screenshot 2024-03-18 at 5.57.05 PM.jpg

now i need to export it in gerber file .

Screenshot 2024-03-18 at 5.57.41 PM.jpg

here plot, generate drill file adn map files.

Screenshot 2024-03-18 at 5.58.27 PM.jpg

these generated gerber file need to get be CONVERTED into png for milling.

gerber to png

gerber to png is a very easy to use gerber to png converter tool developed by our fablab kerala.

to use it open the webapp and drop you your gerber files

Screenshot 2024-03-20 at 4.37.08 PM.jpg

choose generate all option and click generate png.

Screenshot 2024-03-20 at 4.37.28 PM.jpg

wooolaah!!!!..... all you traces , outline and drills png are ready.
Screenshot 2024-03-20 at 4.37.45 PM.jpg

this tool have INBUILT feature to do double side pcb which automatically put the clips in edges for ALIGNMENT. my friends rayan and sayanth have done double side pcbs this week and they have documented it.

milling and soldering

milling process is DOCUMENTED in WEEK 4 - ELECTRONICS PRODUCTION . follow it and start milling the baord.

Pasted image 20240320171648.jpg

IMG_7792.jpg
the milling came nice.

i sourced the components from our fabacademy inventory.

IMG_7862.jpg
component with bom

proceeded with the soldering work . it is also DOCUMENTED in WEEK 4 - ELECTRONICS PRODUCTION week.

test

in order to test the pcb we can use the #Quentorres as a programmer.

boot loading

at first we need to install the firmware to the #Quentorres .

Step 1: Simultaneously press the "boot" and "reset" buttons. Connect your board to a computer using usb cable.Press and hold the "B" button, then while holding it, press the "R" button. Release both buttons, and the rp2040 will enter reset mode, exposing its flash memory as a hard drive.

Step 2: Transfer the uf2 file to the hard drive. Download the uf2 firmware file from here and place it onto the empty hard drive that appeared after completing step 1.
Once the file transfer is complete, the board will automatically reset.

IMG_7864 1.jpg

Step 3: Confirm the board's functionality. To verify that the board is operational, ensure that it appears as a connected USB device. This device should advertise two USB endpoints: a serial port and an SWD programmer.

to flash the swd target which is our board in this case.

IMG_7827.jpg

Using Arduino IDE with the Fab SAM core installed,

Screenshot 2024-03-19 at 4.56.32 PM.jpg

you can use the embedded edbg. To flash the bootloader on the target, click on Burn Bootloader:

Screenshot 2024-03-19 at 4.56.45 PM.jpg

8oScreenshot 2024-03-19 at 4.58.54 PM.jpg

i succesfully bootlaoded the board.

...

..

.
..

..

after BOOT LOADING i connected the board directly and uplaoded a sample blink code.


running the blink code

then i DOWNLOADED step file kicad after adding missing 3d files of the components from snap eda.

Screenshot 2024-03-19 at 10.00.32 PM.jpg

exported it into fusion and made a sliding case for it

Screenshot 2024-03-19 at 10.24.59 PM.jpg

IMG_7866.jpg

final result after making casing