View joystick.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import spidev | |
import time | |
import os | |
spi = spidev.SpiDev() | |
spi.open(0,0) | |
spi.max_speed_hz=1000000 |
View bmp180.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# BMP180 luchtdruk + temperatuur sensor | |
# https://www.raspberrytips.nl | |
import smbus | |
import time | |
from ctypes import c_short | |
DEVICE = 0x77 | |
View goodwe-lcd.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# https://raspberrytips.nl/raspberry-pi-goodwe-zonnepaneel-omvormer/ | |
# 25/08/2018 - Richard IJzermans | |
import sys | |
import smbus | |
import time | |
import datetime | |
import json |
View Goodwe.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import urllib | |
try: | |
jsonfile = json.load(urllib.urlopen('https://eu.goodwe-power.com/Mobile/GetMyPowerStationByUser?userName=GEBRUIKERSNAAM')) | |
except ValueError: | |
print 'Error data kan niet geladen worden...' |
View lcdi2c.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import smbus | |
import time | |
import datetime | |
I2C_ADDR = 0x27 # I2C device address | |
LCD_WIDTH = 16 # Maximum characters per line | |
# Define some device constants |
View motion-homekit.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Homekit motions sensor voor HomeBridge | |
// raspberrytips.nl | |
#include <ESP8266WiFi.h> | |
const char* ssid = "naamnetwerk"; // SSID Wifi (naam) | |
const char* password = "watchwoord"; // Wachtwoord wifi | |
IPAddress ip(192, 168, 2, 99); // IP address | |
IPAddress dns(192, 168, 2, 254); // IP address DNS server |
View cpu-temp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import time | |
import fourletterphat | |
from subprocess import Popen, PIPE | |
print(""" | |
Four Letter pHAT: cpu-temp.py | |
This example will display your Pi's CPU |
View lirc_kpn_mediabox.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Manufacturer: Motorola, Arcadyan, Arris | |
# Model: KPN Mediabox | |
# | |
# Keywords: lirc configuration, IR codes | |
# Remark: Should work the following devices: (often used by KPN and TELFORT) | |
# | |
# Arcadyan HMB2260 | |
# Motorola VIP 1853 | |
# Motorola VIP 1963 |
View tripwire.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Tripwire met laser module en lichtsensor | |
# https://raspberrytips.nl/tripwire-laser | |
from datetime import datetime | |
import RPi.GPIO as GPIO | |
import os, time | |
SensorGPIO = 23 |
View tcrt5000sensor.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# TCRT5000 tracking sensor | |
# https://raspberrytips.nl/tcrt5000 | |
import RPi.GPIO as GPIO | |
TrackingPin = 11 | |
def setup(): |
NewerOlder