Commit 34d0bf52 authored by Philip Hozier's avatar Philip Hozier
Browse files

wk13 5/5 update #2

parent 5d78f6b7
Pipeline #228840 passed with stages
in 19 seconds
......@@ -316,10 +316,9 @@ I felt confident enough in the boards I've previously produced to design these b
**BOM - Controller Board**
![Individual Assignment](../week13/controller-kicad1.jpg "controller kicad 1")
![Individual Assignment](../week13/controller-kicad1.jpg "controller kicad 2")
![Individual Assignment](../week13/controller-kicad2.jpg "controller kicad 2")
![Individual Assignment](../week13/controller-kicad1.jpg "controller kicad 1")
| **COMPONENT** | **DESCRIPTION** | **DATA SHEET** | **SPECIFICATIONS** |
|---|----|---|----|
......@@ -328,17 +327,19 @@ I felt confident enough in the boards I've previously produced to design these b
| **Voltage regulator** | To drop the input voltage by 1.2 v for the sensor. | [LM3480_datasheet.pdf](../week10/lm3480.pdf) | Polarity |
| **Capacitor (1µ)** | To stabilize power signal. | | Non-polarity |
| **Resistor (0 Ohm) x6** | To use as a bridge for tracks to run underneath. | | Non-polarity. |
| **Resistor (4.9k Ohm) x2** | To control amount of current going to the separate LEDs | | Non-polarity. |2| **Button B3 SN** | Input source. | | Non-polarity. |
| **Resistor (1k Ohm) x2** | To control amount of current going to the separate LEDs | | Non-polarity. |
| **Resistor (4.9k Ohm) x2** | 'Pullup' resistors to control amount of current going to the SDA + SCL lines | | Non-polarity. |
|**Button B3 SN** | Input source. | | Non-polarity. |
| **FTDI header pins** | To allow serial communication. | | Non-polarity. |
| **RGB LED, CLV1A-FKB** | RGB colour combinations. | [RGB-LED-datasheet.pdf](../week12/RGB-LED-datasheet.pdf "RGB-LED datasheet")| Polarity |
| **2x3 SPI Header pins x2** | To allow board SPS or I2C communication. | | Non-polarity. |
| **switch** | To switch between 3.3v and 5v. | | Non-polarity. |
![Individual Assignment](../week13/peripheral-kicad1.jpg "peripheral kicad 1")
**BOM - Baby Boards**
![Individual Assignment](../week13/peripheral-kicad1.jpg "peripheral kicad 2")
![Individual Assignment](../week13/peripheral-kicad1.jpg "peripheral kicad 1")
**BOM - Baby Boards**
![Individual Assignment](../week13/peripheral-kicad2.jpg "peripheral kicad 2")
| **COMPONENT** | **DESCRIPTION** | **DATA SHEET** | **SPECIFICATIONS** |
|---|----|---|----|
......@@ -357,18 +358,14 @@ I felt confident enough in the boards I've previously produced to design these b
- Set up project.
- Open 'schematic layout editor'.
![Individual Assignment](../week12/kicad-schematic.jpg "KiCad 2")
- Place 'Symbols'.
- Attach 'Global labels'.
- Place direct connections with 'Wire's if needed.
- Place 'no connection' where needed (to stop errors).
- Place 'PWR FLAG's to suppress power errors.
- Run 'Electrical Rules Check'.
- Run 'Assign PCB footprints to schematic symbols'.
- Run 'PcbNew to layout printed circuit board'.
![Individual Assignment](../week12/kicad-pcb.jpg "KiCad 3")
- Place 'Symbols'.
- Attach 'Global labels'.
- Place direct connections with 'Wire's if needed.
- Place 'no connection' where needed (to stop errors).
- Place 'PWR FLAG's to suppress power errors.
- Run 'Electrical Rules Check'.
- Run 'Assign PCB footprints to schematic symbols'.
- Run 'PcbNew to layout printed circuit board'.
- Set design rules with 'Board Setup'.
- Track 'Routes' and manipulate components rotation/position.
......@@ -404,22 +401,23 @@ Apart from the usual trickiness of soldering such small components, the biggest
**Board Testing**
![Individual Assignment](../week12/errors.jpg "Unhelpful Error messages")
- Continuity testing
This 'sounded' like there were no missed or extra connections in the wrong places. Adding VCC and GND connections to the baby boards showed that the RGB LEDs were connected in the right way. I had confidence that any following problems were more than likely going to be programming ones and not hardware.
**Programming**
![Individual Assignment](../week12/strange-results.jpg "strange results")
![Individual Assignment](../week13/wk13-programming.jpg "programming")
The idea was to use previous code from my other boards to program LED functions onto the peripherals. See [Week 12]("../week12/ "week 12").
A different program on the controller would broadcast a 'message' and the nodes would then activate a LED function based on that message.
---
## What I should’ve done
---
I probably should've found out that SDA and SCL need pullup resistors for communicating before I started designing my controller board. I think I would've queried the use of these resistors if I had been trying to replicate or modify one of the Neil's sample boards, or more thoroughly researched IC2 communication.
---
## Mistakes & Issues
......@@ -453,15 +451,22 @@ When testing the RGB LED nodes, only the Red LED would turn on. Commenting thing
**Ran out of memory on ATtiny412**
![Individual Assignment](../week13/memory-problem.jpg "memory-problem")
Part of designing a board with an RGB LED would mean i could re-use previous code from other weeks. IN the process of trying to load this code onto the board I began to get 'compile' problems when i tried to upload to the board. Debugging the code by commenting out code helped, but an internet search lead me to believe that my program was too much for the chip. It gave the impression that it was in the region of 80% of the memory quota, however what this code included this time from previous weeks was the Wire Library. This must have a memory overhead before the programming is written. Further investigation into the program wasn't possible (see next).
**UPDI failed to initialise**
![Individual Assignment](../week13/updi-problem.jpg "updi-problem")
I then had trouble uploading the programs, with the error 'UPDI failed to initialise'. I swapped USB ports, changed connecting wires, and even restarted the computer. Only thing left to do now is to use another UPDI to check if my UPDI works.
---
## CONCLUSION
---
I have one foot firmly inside the door that is Networking and Communications. From which I can expand my knowledge of using different protocols and deepen what I now know.
---
## FILES
---
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment