Skip to content

Instantly share code, notes, and snippets.

View reefwing's full-sized avatar

David Such reefwing

View GitHub Profile
@reefwing
reefwing / config.txt
Created January 10, 2017 23:33
Raspberry Pi config.txt file to use with the Adafruit 5 inch display (8oox480 resolution)
# Raspberry Pi Config File to use with the Adafruit 5 inch display (8oox480 resolution)
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
@reefwing
reefwing / synthesizer.h
Created January 20, 2017 21:50
EMIC 2 Speech Synthesizer class for Arduino
/**
* @file synthesizer.h
* @brief Speech Synthesizer class.
* @author David Such
*/
#ifndef synthesizer_h
#define synthesizer_h
class Synthesizer
@reefwing
reefwing / robot.h
Created January 20, 2017 21:59
Robot Class for the Arduino Mega 2650
/**
* @file robot.h
* @brief Robot Class for the Arduino Mega 2650
* @author David Such
*/
#ifndef robot_h
#define robot_h
#include <Arduino.h>
@reefwing
reefwing / MegaMain.ino
Created January 20, 2017 22:02
Main sketch for Arduino Mega 2650 Robot
/**
* @file MegaMain.ino
* @brief Arduino Mega 2650 - This microcontroller is the master which co-ordinates the others
* via the I2C and serial bus.
*
* Log commands are sent from the main microcontroller on the I2C bus
* to the OLED and SD logging arduino at address 10. Piezo tones are
* also controlled from this microcontroller.
*
* The microcontroller at address 11 on the I2C bus controls the
@reefwing
reefwing / RS_Robot.py
Created March 9, 2017 05:35
Raspberry Pi Python Robot Class - see http://reefwingrobotics.blogspot.com.au/
#!/usr/bin/python
# RS_Robot.py - Robot Class for the Raspberry Pi
#
# 4 March 2017 - 1.0 Original Issue
#
# Reefwing Software
# Simplified BSD Licence - see bottom of file.
import RPi.GPIO as GPIO
import os, signal
@reefwing
reefwing / RS_Server.py
Created March 9, 2017 05:39
Raspberry Pi Robot Web Server (video streaming and control) - see http://reefwingrobotics.blogspot.com.au/
#!/usr/bin/env python
# RS_Server.py - Web Server Class for the Raspberry Pi
#
# Based on server.py from pistreaming
# ref: https://github.com/waveform80/pistreaming
# Copyright 2014 Dave Hughes <[email protected]>
#
# 06 March 2017 - 1.0 Original Issue
# 08 March 2017 - 1.1 Command parsing added
#
@reefwing
reefwing / RS_MotorControl.py
Created March 9, 2017 05:42
Python Motor Control Class for the Seeed Raspberry Pi Motor Driver - see http://reefwingrobotics.blogspot.com.au/
#!/usr/bin/python
# RS_MotorControl.py - Motor Control Class for the Seeed Raspberry Pi Motor Driver
# Board v1.0 which uses the Freescale MC33932 dual H-Bridge Power IC.
#
# Based on Seeed Motor() Class
# ref: http://wiki.seeed.cc/Raspberry_Pi_Motor_Driver_Board_v1.0/
#
# 01 March 2017 - 1.0 Original Issue
# 09 March 2017 - 1.1 forward, back, left, right and spin methods added
#
@reefwing
reefwing / RS_Servo.py
Created March 9, 2017 05:46
Wrapper Servo Class for Raspberry Pi - see http://reefwingrobotics.blogspot.com.au/
# RS_Servo.py - Wrapper Servo Class for Raspberry Pi
#
# 15 February 2017 - 1.0 Original Issue
# 18 February 2017 - 1.1 Modified with @property
# 06 March 2017 - 1.2 Licence added
#
# Reefwing Software
# Simplified BSD Licence - see bottom of file.
import RPi.GPIO as GPIO
@reefwing
reefwing / index.html
Created March 9, 2017 05:50
HTML and JavaScript page to be used with RS_Robot - see http://reefwingrobotics.blogspot.com.au/
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=${WIDTH}, initial-scale=1"/>
<title>Alexa M</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<style>
.controls {
width: 150px;
@reefwing
reefwing / IRBeacon.ino
Created August 9, 2018 02:45
An IR remote using the ESP32 and controlled via the IoT hub in Azure.
/*
* IRbeacon: Continually sends IR remote control information every 5 seconds
* An IR LED must be connected to the ESP32 pin IR_LED via 100 ohm resistor.
* Uses the ESP32-IRremote library and modified functions from the
* Microsoft GetStarted.ino sketch in the Examples folder.
*
* 0xa90 is the Sony power on/off code.
*
* Version 0.1 August, 2018
* Copyright 2018 David Such