Skip to content

Instantly share code, notes, and snippets.

View actuino's full-sized avatar

Sylvain @actuino actuino

View GitHub Profile
@actuino
actuino / raspberry-tft-9.95-ili9488.md
Last active July 16, 2023 07:51
Cheap 3.95 TFT Screen with ili9488 from mcufriend on a Raspberry Pi Zero
@actuino
actuino / ActiveBuzzerTest.Py
Created March 31, 2017 20:23
Raspberry Pi Zero Active Buzzer Test
#!/usr/bin/env python
import RPi.GPIO as GPIO
import time
Buzzer = 40 # La pin Buzzer (N° de broche du Raspberry, pas le N° GPIO du proc)
def setup(pin):
global BuzzerPin
BuzzerPin = pin
GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location
@actuino
actuino / pi-drive-perfs.md
Last active March 28, 2017 08:33
Perfs of WD Labs Pi Drive

Perf Tests

Several hosts, WD Labs Pi Drive 250Gb and SSDs
The benchmark uses fio in order to simulate a DB access with several processes and small random chunk being read/writen.

The Hosts systems

Host A: Raspberry Pi Zero W

(current Raspbian)

@actuino
actuino / bt_speaker-raspberry_pi-zero_w.md
Last active October 26, 2023 23:54
Setting up a Bluetooth Speaker from the command line on a raspberry Pi Zero W

The setup of a bluetooth speaker on a Pi Zero W is pretty touchy.

Please get in touch via Twitter @actuino or http://www.actuino.fr/ if you've got comments or improvements to this quick draft.

First checks

  • Use a solid power source
  • check the speaker works on another hardware (android phone f.i.)
  • make sure you've updated your Raspbian, install and run rpi-update just in case.
@actuino
actuino / unicorn-client_app.go
Created March 20, 2017 08:41
A websocket client in Go that connects to a unicorn display server - See http://www.actuino.fr/raspi/learn-go-pi.html
package main
import (
"github.com/graarh/golang-socketio"
"github.com/graarh/golang-socketio/transport"
"log"
"runtime"
"time"
"fmt"
"io/ioutil"
@actuino
actuino / blinkt-demo_app.go
Created March 20, 2017 08:38
A basic Go demo app for the Blinkt! - See http://www.actuino.fr/raspi/learn-go-pi.html
package main
import . "github.com/alexellis/blinkt_go"
func main() {
brightness := 0.5
blinkt := NewBlinkt(brightness)
blinkt.SetClearOnExit(true)
blinkt.Setup()
Delay(100)
@actuino
actuino / twitter-mood-light.py
Created March 12, 2017 20:38 — forked from sandyjmacdonald/twitter-mood-light.py
Turn your Pimoroni Unicorn pHAT or Mood Light Kit into a Twitter-connected mood light that tracks the mood of your most recent tweets.
## This script will turn your Unicorn pHAT or Mood Light Kit into
## a Twitter-connected mood light that tracks the mood of your most
## recent tweets.
## You'll need to install the unicornhat, textblob, and tweepy Python
## libraries, and run "python -m textblob.download_corpora" to download
## the corpora for textblob the first time you run it.
## Change the start_hue and end_hue values to use a different portion of
## the colour wheel. Change num_tweets to track a larger number of recent
@actuino
actuino / README-FR.md
Created March 9, 2017 18:35
alexellis/docker-arm/images/armhf/python2-unicornhat.dev/README-FR.md

Image Docker de développement pour le Unicorn sur Raspberry PI

Cette image embarque la suite de développement Python 2.7 , avec pip ainsi que Git et build-essentials. L'image n'a pas été optimsiée pour sa taille.

Testée avec un Raspberry Pi Zero, mais toute la famille Raspberry (Pi2, Pi3, Pi Zero) est compatible.

La librairie Pimoroni unifiée pour les Unicorn HAT et pHAT est installée.

@actuino
actuino / HowToOTG.md
Created February 10, 2017 09:23 — forked from gbaman/HowToOTG.md
Simple guide for setting up OTG modes on the Raspberry Pi Zero

Raspberry Pi Zero OTG Mode

Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).

The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int

@actuino
actuino / HowToOTGFast.md
Created February 10, 2017 09:23 — forked from gbaman/HowToOTGFast.md
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

###Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)
More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH is