Home Forum Hardware KIT1 Feedback Reply To: KIT1 Feedback

#3572
wanek
Participant

hello everyone!

endproduct

here is a post about my diy kit1, based on the v1.1.104 pcb. it was made with minor modifications / improvements regarding the original model. as radhoo said, maybe other builders will be interested in this, so i published here.

building

first of all, i’m a beginner in all this electronics and coding stuff, so if i wrote something stupid, please correct me. i’m always open for constructive criticism. second, sorry for my english, it is not my native language, but i’ll try to do my best 🙂

the differences compared to the original kit1 are:
– incorporated lithium battery
– built in battery charger module + micro usb port
– low dropout (0.17v) regulator
– real PoE connectivity, no additional cable / port needed on the device side, just the rj45 connector
– transparent case made from plexiglass

updated bom, with the components i used (if something is missing, please let me know):
BOM, updated

i have built 2 kits: one for me and on for a friend. ha asked to make it portable, because he will use mainly on field, as a mobile unit, outdoors and on industrial working sites.
this raised two challenge: the final product has to have a
– reliable and high capacity rechargeable battery
– a robust but not to bulky case

portable unit

please note, that the components for these kits i bought from local stores, the best available quality. hence, these components visual aspect are differ from the originals, shipped with the kit1. i measured all of them before soldering, to make sure everything is up to the specs.

building2

regarding the pcbs, after some emails, radhoo was so kind to send me 2 pieces, thank you again! because i didn’t want to ‘destroy’ these beauties, all the modifications are made without hacking the pcb.

power supply / charger / power consumption:

nowadays the “standard” power supply for handheld devices is the type b micro usb port. you can find them virtually everywhere. also, it is fairly easy and very cheap to implement into diy stuff, using these chinese modules:
battery charger, ali

as for the battery, probably everybody has access to some broken smartphones… although the phone or display is broken, chances are good that the battery is still functional. you just have to hook up to the output of the charging module and the input of the voltage stabiliser, it is ready to use.
i’ve used one cell from an old macbook battery, scavenged. it contains 4 lithium cells, similar like on this site:
macbook battery

they are roughly the size of the kit1 pcb. this way, the charger + battery ain’t cost anything to me (0.3 euro).
to keep a safe distance between the batteries aluminum foil and the bottom of the pcb, i’ve used 4 self adhesive rubber shoes, the ones used for furniture feets.

rubber shoes

most lithium batteries have a nominal voltage of 3.6v (min 3.0v, max 4.2v). the recommended operating voltage for the kit1 is min 3.0v, max 3.3v. to take maximum use of the battery, i opted for a 3.0v voltage regulator. it has to have ultra low dropout voltage, in order to maximize battery life.
so, i had to replace the original lm1117 voltage stabiliser, lm1117 datasheet, because it has a large dropout voltage, 1.1v. (this would be 3.0 + 1.1 = 4.1v -> maybe just 5% of the overall battery capacity. not too efficient…)

after a lot of searching, i bought the MCP1700-3002E/TO regulator mcp1700 datasheet. it has very low dropout, only 0.17v. it means: 3.0 + 0.17 = 3.17v, i can use around 95% battery capacity. good.
the max output current for the mcp1700 is 250mA, and the max input voltage is 6.0v. as the lithium battery never goes above 4.2v, its ok for me.

to estimate the battery life, i’ve made some measurements:
(because the battery is quite old and tired, the 3700mA nominal capacity was irrelevant)
the kit1 has the following current consumption @ 3.0v (with the red led desoldered from the ethernet module):

offline mode, backlight off: 36mA
backlight: 18mA
online mode, backlight off: 147mA
maximum peak current: 170mA

in online mode, with fully charged battery (4.2v) it took 18 hours to discharge it to 2.9v.
discharging under 2.9v it is harmful for the lithium batteries lithium info, so even if the kit1 kept working at 2.9v, i stopped the measurement. it then took around 5 hours to fully charge the battery (from a usb port).

based on the above current consumption scenarios and the measured 18 hours, it is fairly safe to estimate 50 hours uptime in offline mode. more than adequate for daily use on the field.

regulator in place
this regulator has a different pinout, regarding the original model. i had to make a tricky implementation, but it worked.

at the moment, the only flaw is, that the kit1 keeps working even under 2.7v, over-discharging the battery. in the long run this will damage the lithium cell. the firmware should be modified to post a ‘low battery’ message to the screen and standby the unit, if the voltage drops below 2.85v. (we need to have full access to the source code to implement this)

also, it would be nice to have a voltage divider on the battery terminals (say 4.2v -> 3.0v) and implement a battery voltage monitoring function in the firmware. this way the user can have a feedback about the battery state. there are 2 unused analog pins on the mcu kit1 schematic, this shouldn’t be a problem.

filter
the MCP1700 needs 2 filtering capacitors to work properly. i’ve just replaced the original c3 with 1uf ceramic, the other one (cout) was soldered on the back side of the pcb.

because the charger module covered some holes of the on / off switch on the pcb, i’ve used a different switch, placed on the right side of my case:

switch bw

switch installed

PoE:

for the stationary unit installed outside, i wanted to have just one single cable (for supply + ethernet).
according to wikipedia poe wiki the poe standard uses 2 modes: A and B.

unfortunately, after some fiddling i’ve realised that none of these modes are implemented in the hr911105a rj45 connector, used on the enc28j60 ethernet modules. rj45 datasheet

what a pity! all the 8 pins are galvanically isolated. i needed access to pins 4+5 for dc+, respectively pins 7+8 for dc-. poe pinouts

poe cable
custom made ethernet cable: on the router end has an additional usb cable, serving to inject 5v dc. this will be powered from the unused usb port on my router. the other end is just a standard rj45 connector.

hacking the rj45:

it is possible to open the metal sheet on the connector. then i’ve removed some plastic with a red-hot cutter blade, to expose the pins.
rj open1

rj open2
the isolation transformers for rx and tx are clearly visible

cleaning and soldering the wires to the selected pins was easy. for tapping i’ve removed one of the lateral side tin. after putting some layers of insulation to the exposed pins i’ve closed the connector.
rj + cable1

rj + cable2

rj + cable3

the terminal wires were soldered to the appropriate INPUT pins (+5v and gnd) on the micro usb charger module. now i have a real poe module!

attention:
do not solder the +5v cable to the charger module OUTPUT, because it will overcharge the lithium battery! lithium batteries, if charged beyond 4.3v can explode or catch fire!

of course, this modification doesn’t deal with the two 75 ohm resistors, which kinda “short” the usb port.
short

but if you do the math: 2 x 75r = 150r. for 5v / 150r = 33mA extra current consumption for the usb port. the usb port standard specifies at least 500mA / port. the whole device does not absorb more than 200 mA, i think this is on the safe side.

regarding the heat production on the two 75 ohm resistors:
0.033A x 5v = 0,166W total. there are 2 resistors, so this is 0.083W / resistor. even if the resistors will burn out, i do not care, they are useless in this configuration (i think).

please note: using 5v dc with poe is not recommended on long cable runs, because, when load applied, the voltage drops quickly. in my case, i needed 5m ethernet cable. with the device connected, the 5v dropped to 4.3v. this means, that the charger module will output max 4.0 volts, so the battery will be never charged to 100%. this is not a problem for me, as the router will continuously supply the power. for much longer cables, one should consider using a dc to dc booster between the usb port and ethernet cable to compensate for the voltage drop.

bme280:

bme280

the v1.1.104 pcb has a nice feature, the extension port. i’ve populated this port with a bme280 module. bme280 specs

you can buy one here: bme ali

these sensors are very high quality and one can obtain a lots of info, with proper code implementation:
– temperature
– pressure
– altitude (uncalibrated)
– relative humidity
– dew point
– heat index (shadow)
– heat index (sunlight)

i’ve wrote a small arduino sketch to display all these values, using the SparkFunBME280 library. bme280 sketch

soldering bme

unfortunately, at the time of writing this article, the uradmonitor source code (v117) is not fully open. we have to wait for radhoo to implement this sensor, or much better, to publish the full source code on github.

case design:

case

for the device to be fully usable outdoors and to have a better visual experience, needs a case. i’ve designed the case in corel draw x8. made two very similar models, one for wall mounted fix station, one for portable device. despite my very limited knowledge in corel, i managed to finish it with quite good results. it was then laser cut from 3mm clear plexiglass.

case draw

since the enc28j60 chip produces a lot of heat, in a closed case this would deteriorate the temperature readings.
i’m interested in the REAL outdoor readings. if the temperature value is not correct, all the other values are useless. the humidity calculation formula is also based on temperature. accordingly, i had to assure a very good ventilation for the sensor.

vent holes

designed a lots of ventilation holes on strategic parts of the case. these are circles 1.5mm in diameter. this is the smallest diameter the laser can cut, without melting too much plexi around. i hope the insects will not pass these holes. they will surely try. when winter coming, a ‘heated’ hotel is very attractive…

as hot air always goes up, the components arrangement is not very fortunate for the sensor, since it is placed exactly above the biggest heat source in the kit1.
i decided to mount the whole device upside down to the wall, this way the bme280 will be under the ethernet module. the ventilation holes should produce a chimney effect, that will take care to transport the air from bottom to top. theoretically, the sensor will always receive the unheated air from outside, obtaining correct readings.
i will test this theory when the device is mounted on the wall, placing an external temperature sensor near the case, and compare the 2 values.

while used as a fix station, the micro usb port will be out of order. hence, it will be covered with a cap, to keep the bugs at bay.

if anyone is interested to build one of these case, here are the corel draw x8 files:
fixed station with bme sensor
portable, without bme sensor

assembled

i will add new photos when it will be installed in its final place. for high resolution pictures you can visit: album

thank you radu for all the big effort and helpful attitude in this worldwide project!
thanks for reading,

written in 2016, oradea.

engraved text