Ir para conteúdo
3DFinder
Entrar

Você está no 3DFinder

Buscamos em Thingiverse, MakerWorld e Printables ao mesmo tempo para te dar o melhor de cada uma.

Buscar mais como este
Modelo 3D UPS-Lite Raspberry Pi Zero case por ndupont no Thingiverse

Descrição

Remix for the Raspberry Pi Zero (W) mounted on a UPS-Lite.

Printed with 0.2mm layers, no supports.

Some action : https://www.youtube.com/watch?v=IbQ9D2eIZqA https://www.youtube.com/watch?v=ZrIysoZl2jI

UPS-Lite software is available here https://github.com/linshuqin329/UPS-Lite

Here is some Node Red code to retrieve Voltage and battery gauge : (>Import >Clipboard) [{"id":"4e29f32.301630c","type":"i2c in","z":"87a082cf.723f1","name":"Volts","address":"54","command":"2","count":"2","x":408,"y":563,"wires":[["b27088d9.1b3cf8"]]},{"id":"1ad1c751.ef6e09","type":"i2c in","z":"87a082cf.723f1","name":"Batt%","address":"54","command":"4","count":"2","x":408,"y":603,"wires":[["8dc9b062.75247"]]},{"id":"b27088d9.1b3cf8","type":"function","z":"87a082cf.723f1","name":"get_volts","func":"var data=msg.payload[0]256+msg.payload[1];\nmsg.payload=((data1.25)/1000/16).toFixed(3)*1;\nmsg.topic=msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":538,"y":563,"wires":[["1ad1c751.ef6e09","7b80f0c.4a25b1"]]},{"id":"8dc9b062.75247","type":"function","z":"87a082cf.723f1","name":"get_batt%","func":"var data=msg.payload[0]*256+msg.payload[1];\nmsg.payload=(data/256).toFixed(3)*1;\nreturn msg;","outputs":1,"noerr":0,"x":538,"y":603,"wires":[["1ace7efa.d562a1","c2fc9916.4b0e78","90ac1583.a8ddb8"]]}]

And some Python based on the original code #!/usr/bin/env python import struct import smbus import sys import time

def readVoltage(bus):

    "This function returns as float the voltage from the Raspi UPS Hat via the provided SMBus object"
    address = 0x36
    read = bus.read_word_data(address, 2)
    swapped &#61; struct.unpack(&#34;</code>
Thingiverse

UPS-Lite Raspberry Pi Zero case

62
Curtidas
0
Downloads
60
Coleções
Tags
Raspberry Pi raspberry pi case Raspberry Pi Zero UPS
Licença Creative Commons - Attribution
Arquivos (2)
Pi_Zero_on_UPS-Lite_cover.stl 76 KB
Pi_Zero_on_UPS-Lite.stl 101.6 KB
Ver no Thingiverse (abre em nova aba)