jbaumann / attiny_daemon Goto Github PK
View Code? Open in Web Editor NEWHardware and Software for a Raspberry UPS based on an ATTiny
License: Apache License 2.0
Hardware and Software for a Raspberry UPS based on an ATTiny
License: Apache License 2.0
When i run "sudo systemctl status attiny_daemon" i get this error:
pi@pi1:~ $ sudo systemctl status attiny_daemon
● attiny_daemon.service - ATTiny UPS Daemon
Loaded: loaded (/etc/systemd/system/attiny_daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-02-15 15:56:40 GMT; 7s ago
Main PID: 631 (attiny_daemon.p)
CGroup: /system.slice/attiny_daemon.service
└─631 /usr/bin/python3 -u /opt/attiny_daemon/attiny_daemon.pyFeb 15 15:56:42 pi1 attiny_daemon.py[631]: ATTiny Daemon version 2.1.1
Feb 15 15:56:43 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:43 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:44 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:44 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:45 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:45 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:46 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:46 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Feb 15 15:56:47 pi1 attiny_daemon.py[631]: Couldn't read 16 bit register 0x1 correctly.
Can you tell me what is wrong?
Apologies for contacting you here, but I can find NO other way to get ahold of you (please create or otherwise expose a public-facing email address! It would be very helpful.).
I want to implement this device, using a USB power bank "kit" (a plastic housing and the power bank controller PCB, with room for up to six 18650 cells) and some 18650 cells from old laptop batteries. HOWEVER, I can't tell how to interface / monitor multiple batteries at once, and I'd be concerned about the batteries' respective charges getting out of whack -- I don't know much about LiPoly cells, but I know they have a nasty temper and I know that balancing cells is a concern. (...and, yes, I also know better than to solder to batteries. While I've not read up on the latest LiPoly concerns, I'm mildly experienced as an electronics hobbyist.)
Example listing for power bank kit (mine is identical, but not from that listing) --> https://www.ebay.com/itm/183897827870
It appears Geekworm has released their RPi4B supported UPS HAT
https://geekworm.com/products/raspberry-pi-ups-hat-2
It also mentioned the I2C power off function, does anyone on here have tried?
@jbaumann have you considere altering the design and avoid dependence on another charger circuit,
and rely instead on super-capacotors?
(something along the lines of https://juice4halt.com/)
Hi
I can't see from your documentation where the wires from the modified board are connected to or where exactly the Dupont connector attaches.
Could you provide images of the final layout?
Hi Joachim,
thanks for the elaborated design and DIY explanations for the RasPi UPS HAT!
Sadly I cannot get the firmware for the AtTiny to compile since there is missing code as stated above (Wire.onInterrupt(disable_watchdog)).
How to fix or circumvent this?
Thanks!
Harald
Hi,
I am intent on implementing this device on my RPi, but am getting the following errors in the Arduino IDE:
`In file included from C:\Users\Dave\Documents\Arduino\libraries\USIWire\src\USI_TWI_Master/USI_TWI_Master.h:76:0,
from C:\Users\Dave\Documents\Arduino\libraries\USIWire\src\USIWire.cpp:27:
C:\Users\Dave\Documents\Arduino\libraries\USIWire\src\USI_TWI_Master/usi_io.h:1:1: error: expected unqualified-id before '.' token
../USI_TWI_Slave/usi_io.h
^
C:\Users\Dave\Documents\Arduino\libraries\USIWire\src\USIWire.cpp: In member function 'void USIWire::begin()':
C:\Users\Dave\Documents\Arduino\libraries\USIWire\src\USIWire.cpp:55:3: error: 'USI_TWI_Master_Initialise' was not declared in this scope
USI_TWI_Master_Initialise();
^~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Dave\Documents\Arduino\libraries\USIWire\src\USIWire.cpp:55:3: note: suggested alternative: 'USI_TWI_Slave_Initialise'
USI_TWI_Master_Initialise();
^~~~~~~~~~~~~~~~~~~~~~~~~
USI_TWI_Slave_Initialise
Multiple libraries were found for "USIWire.h"
Used: C:\Users\Dave\Documents\Arduino\libraries\USIWire
Multiple libraries were found for "EEPROM.h"
Used: C:\Program
exit status 1
Error compiling for board ATtiny25/45/85.
`
Can you suggest where I went wrong - these error messages might as well be in greek:(
Thanks
Hi, I am developing a portable pi UMPC/sidekick. I want to add your solution there and forget about developing one from ground.
So i need Help of yours to get things right.
Please help me out
Here is my project.
https://mutantc.gitlab.io/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.