## Joule Thief #042 - Integration Testing Final Firmware
[[!Joule Thief]]
**Contents:**
- [[#Inventing More Address Space]]
- [[#Breadboard Integration Testing]]
- [[#Battery vs. Channel Performance Data]]
- [[#Address Tables]]
- [[#Solder Jumper Map]]
- [[#Final 5-Board Joule Thief - Integration Testing]]
- [[#CODE - Joule Thief R2 V3 Firmware - Open Sauce]]
---
### Inventing More Address Space
I need 2 more INA219's, so the next step is hacking my breakout boards to give me more address space.
![[Pasted image 20250626172616.png]]
![[Pasted image 20250626172549.png]]
And that was easy enough!
Doing it one more time.
![[Pasted image 20250626175042.png]]
That one was harder to solder
### Breadboard Integration Testing
The gang's all here!
```
Scanning...
I2C device found at address 0x2C !
I2C device found at address 0x2D !
I2C device found at address 0x2E !
I2C device found at address 0x40 !
I2C device found at address 0x41 !
I2C device found at address 0x44 !
I2C device found at address 0x45 !
I2C device found at address 0x48 !
I2C device found at address 0x49 !
done
```
![[Pasted image 20250626210908.png]]
**Addresses for Channel C:**
- INA219-1: 0x48
- INA219-2: 0x49
- AD5280-C: 0x2E
**Architecture Sketch:**
![[Pasted image 20250626215422.png]]
### Battery vs. Channel Performance Data
**battery A booster A**
- 140-150mW
- 65-70%
**battery B booster A**
- 190mW
- 70%
**battery A booster B**
- 38mW
- 75%
**battery B booster B**
- 65-70mW
- 75%
#### Best
**Battery B on Booster A on Channel C**
- 170-180mW
#### Resoldered Booster B
**battery B on Booster B on channel C**
- 160-70mW
### Address Tables
#### INA219 Addressing Table
| A1 | A0 | HEX |
| ------- | --- | --- |
| GND | GND | 40 |
| GND | V+ | 41 |
| GND | SDA | 42 |
| GND | SCL | 43 |
| V+ | GND | 44 |
| V+ | V+ | 45 |
| V+ | SDA | 46 |
| V+ | SCL | 47 |
| SDA | GND | 48 |
| SDA<br> | V+ | 49 |
| SDA<br> | SDA | 4A |
| SDA<br> | SCL | 4B |
| SCL | GND | 4C |
| SCL | V+ | 4D |
| SCL | SDA | 4E |
| SCL | SCL | 4F |
#### AD5280 Addressing Table
| A1 | A0 | HEX |
| --- | --- | --- |
| GND | GND | 2C |
| GND | V+ | 2D |
| V+ | GND | 2E |
| V+ | V+ | 2F |
### Solder Jumper Map
![[Pasted image 20250713130916.png]]
### Final 5-Board Joule Thief - Integration Testing
#### Main Board
1. I2C device found at address 0x2C !
2. I2C device found at address 0x40 !
3. I2C device found at address 0x44 !
#### Add Module 0
1. I2C device found at address 0x2C !
2. I2C device found at address 0x2F !
3. I2C device found at address 0x40 !
4. I2C device found at address 0x44 !
5. I2C device found at address 0x4E !
6. I2C device found at address 0x4F !
#### Add Module 1
1. I2C device found at address 0x2C !
2. I2C device found at address 0x2E !
3. I2C device found at address 0x2F !
4. I2C device found at address 0x40 !
5. I2C device found at address 0x44 !
6. I2C device found at address 0x4C !
7. I2C device found at address 0x4D !
8. I2C device found at address 0x4E !
9. I2C device found at address 0x4F !
#### Add Module 2
1. I2C device found at address 0x2C !
2. I2C device found at address 0x2D !
3. I2C device found at address 0x2E !
4. I2C device found at address 0x2F !
5. I2C device found at address 0x40 !
6. I2C device found at address 0x44 !
7. I2C device found at address 0x4A !
8. I2C device found at address 0x4B !
9. I2C device found at address 0x4C !
10. I2C device found at address 0x4D !
11. I2C device found at address 0x4E !
12. I2C device found at address 0x4F !
#### Add Module 3
1. I2C device found at address 0x2C !
2. I2C device found at address 0x2D !
3. I2C device found at address 0x2E !
4. I2C device found at address 0x2F !
5. I2C device found at address 0x40 !
6. I2C device found at address 0x44 !
7. I2C device found at address 0x48 !
8. I2C device found at address 0x49 !
9. I2C device found at address 0x4A !
10. I2C device found at address 0x4B !
11. I2C device found at address 0x4C !
12. I2C device found at address 0x4D !
13. I2C device found at address 0x4E !
14. I2C device found at address 0x4F !
#### Serial Print Logs
```
source_voltage_a=4.14,power_in_a=7.00,current_in_a=-1.40,mppc_a=215,mppc_enabled_a=1,schmitt_1=0,schmitt_2=1
boost_voltage_a=4.73,power_out_a=106.00,current_out_a=25.40,efficiency_a=1514.285766
source_voltage_b=0.00,power_in_b=0.00,current_in_b=0.10,mppc_b=128,mppc_enabled_b=0
boost_voltage_b=0.92,power_out_b=0.00,current_out_b=-0.20,efficiency_b=6.250000
source_voltage_c=0.00,power_in_c=0.00,current_in_c=0.20,mppc_c=128,mppc_enabled_c=0
boost_voltage_c=0.00,power_out_c=0.00,current_out_c=0.10,efficiency_c=0.000000
source_voltage_d=0.00,power_in_d=0.00,current_in_d=0.10,mppc_d=128,mppc_enabled_d=0
boost_voltage_d=0.77,power_out_d=0.00,current_out_d=-0.30,efficiency_d=0.000000
source_voltage_e=0.00,power_in_e=0.00,current_in_e=0.10,mppc_e=128,mppc_enabled_e=0
boost_voltage_e=0.77,power_out_e=0.00,current_out_e=-0.30,efficiency_e=0.000000
source_voltage_a=4.14,power_in_a=7.00,current_in_a=-1.40,mppc_a=210,mppc_enabled_a=1,schmitt_1=0,schmitt_2=1
boost_voltage_a=4.73,power_out_a=128.00,current_out_a=21.90,efficiency_a=1828.571533
source_voltage_b=0.00,power_in_b=0.00,current_in_b=0.10,mppc_b=128,mppc_enabled_b=0
boost_voltage_b=0.91,power_out_b=0.00,current_out_b=-0.20,efficiency_b=6.250000
source_voltage_c=0.00,power_in_c=0.00,current_in_c=0.10,mppc_c=128,mppc_enabled_c=0
boost_voltage_c=0.00,power_out_c=0.00,current_out_c=0.10,efficiency_c=0.000000
source_voltage_d=0.00,power_in_d=0.00,current_in_d=0.10,mppc_d=128,mppc_enabled_d=0
boost_voltage_d=0.77,power_out_d=0.00,current_out_d=-0.30,efficiency_d=0.000000
source_voltage_e=0.00,power_in_e=0.00,current_in_e=0.10,mppc_e=128,mppc_enabled_e=0
boost_voltage_e=0.76,power_out_e=0.00,current_out_e=-0.30,efficiency_e=0.000000
```