Mainly but not limited to my attempt to build a MiWi wireless home control and security network.

Saturday, April 02, 2011

Fine tuned the battery management code to work with the MiWi network stack. Mostly had to adjust the size of NAOS states to ensure that the stack could run when it needed to.

The console is broken. it goes of into the weeds during a printf. The count returned by printf is nonsense. Could be a problem with the ISR ? GIven that only the main coordinator will use a console connected to anything but the network I am thinking of using a 2nd processor on it and sending bytes between then using SPI.

Populated the 2nd charger board. Only using 1 ADC for the battery and one of the 2nd position will be used to sense line voltage. Used 2.2K's for the battery and a 2.2K/100R for the line. Used a 4.3R 1/2 Watt resistor to set the charge current to 1.25V/4.3R = 290 mA. Works out to about 1/3 Watt.

Edit: there is a problme in using the 1st position on the charger PCB for the battery. The charging circuitry are attached to the 3rd position so the battery sensing will have to be moved there and it will have to be populated.

Using MPLAB 8 to build one node and MPLAB X for a second. By setting MCC18 command definitions for EUI_0 I can build the both nodes from the same source. Sort of coo as you edit the shared code from either IDE. Should be using multiple projects in the same IDE but for now MPLAB X is still new.

Have yet to populate the discharge resistors.

The PK3 will not ID the PIC18LFJ13 properly. Microchip support suggest I change 2 resistors in the PK3. I expect I can avoid that by bringing VDD to 3.3V and keeping VDDCORE at 2.5V.

Discovered that it is possible to reflow with hot air on a PCB with a thin layer of acrylic spray. The joints looked good with the ohm meter but am still holding my breath a bit
.

0 comments:

Contributors