You can not have enough Digital Voltage Multimeters, or some other device that measures voltage. Also, I needed an extra voltage measuring device on my boat. This little project teaches you how to make a PIC16F688 read voltage, convert it to an AD value …
This little program toggles an LED on and off forever.
importRPi.GPIOasGPIOimporttimeGPIO.setmode(GPIO.BCM)# Using PIN function not BOARD number #GPIO.setwarnings(False)# Turning off all warnings ## Run while-loop forever #whileTrue:GPIO.setup(19,GPIO.OUT)print"Led on"GPIO.output(19 …
'''Import libraries'''fromTkinterimport*importtime'''Define a function'''deftick():'''Assign current time to time_string'''time_string=time.strftime("%H:%M:%S")'''Update the clock labels text'''clock.config(text=time_string)'''After 200ms run tick'''clock.after(200,tick)'''Make …
This python script creates a window with four buttons, two labels and a text widget.
The code is fairly good commented and speaks for itself. The coded file will be written as a text file.
My boat is laying at a mooring, and I live 45min away. I do not go out to check it on a daily basis. I want to get an e-mail from the boat on a fixed time, morning and evening, to see that everythoin is OK.
This is the way I record my 3d printing, using a Raspberry Pi and its camera module. At Thingeverse I found an enclosure for the camera. A quick search reveals a lot of hits: Thingeverse raspberry pi camera.