Skip to content

Instantly share code, notes, and snippets.

goebish

  • Bdx, FR
Block or report user

Report or block goebish

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View geiger.ino
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
#include <CircularBuffer.h> // https://github.com/abouvier/CircularBuffer/archive/master.zip
#include <MovingAverage.h> // https://github.com/abouvier/MovingAverage/archive/master.zip
#include <TinyTimer.h> // https://github.com/abouvier/TinyTimer/archive/master.zip
#define LED_PIN 4
#define BUZZER_PIN 9 // do not change, driven by hardware counter
#define GEIGER_PIN 2 // must be D2 or D3
View xn297_decod.cpp
#include <QtCore/QCoreApplication>
#include <stdio.h>
#include <stdint.h>
#include "qfile.h"
// xn297 scramble table
static const uint8_t xn297_scramble[] = {
0xe3, 0xb1, 0x4b, 0xea, 0x85, 0xbc, 0xe5, 0x66,
0x0d, 0xae, 0x8c, 0x88, 0x12, 0x69, 0xee, 0x1f,
0xc7, 0x62, 0x97, 0xd5, 0x0b, 0x79, 0xca, 0xcc,
View bugs3mini_dump.ino
// dump rxid / address pairs out of the Bugs3 Mini stock TX
// https://i.imgur.com/i1ZzG9Z.jpg
#include <SPI.h>
#include "iface_nrf24l01.h"
// also require nRF24L01.ino, softSPI.ino and XN297_emu.ino
// from the nrf24-multipro project to be in the same folder
char buf [100];
volatile byte pos;
volatile boolean process_it;
View glowclock.ino
//#define CALIBRATE
//#define GRID
const double SERVO_LEFT_ZERO = 1890; // 1800
const double SERVO_RIGHT_ZERO = 900; // 850
const double SERVO_LEFT_SCALE = 600; // 600
const double SERVO_RIGHT_SCALE = 540; // 570
//#define OPTION_12_HOUR //12 or 24 hour time
View PWM2LED.ino
// PWM2LED
// goebish 2017
//
#include <FastLED.h> // (lib available at https://github.com/FastLED/FastLED/archive/master.zip )
// see https://github.com/FastLED/FastLED/wiki/Pixel-reference for reference
// settings
#define NUM_LEDS 12
View a7105_decode.py
#!/usr/bin/env python
reg_map = {
0x00 : "00_MODE",
0x01 : "01_MODE_CONTROL",
0x02 : "02_CALC",
0x03 : "03_FIFOI",
0x04 : "04_FIFOII",
0x05 : "05_FIFO_DATA",
0x06 : "06_ID_DATA",
@goebish
goebish / Makefile
Last active Aug 29, 2015
M63 RC transmitter for RPi, uses XN297 transceiver on SPI port
View Makefile
DEBUG = -O3
CC = g++ -std=c++
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
LDFLAGS = -L/usr/local/lib
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm
SRC = m63.cpp
OBJ = $(SRC:.cpp=.o)
BINS = $(SRC:.cpp=)
@goebish
goebish / CX10_nRF24.ino
Last active Jan 20, 2019
nRF24 CX-10 Tx Code (green & blue boards)
View CX10_nRF24.ino
/*************************************************************
************* nRF24 Cheerson CX-10 Tx Code ******************
************* (Green & Blue boards) ******************
**************************************************************
by goebish on RCgroups.com
Thanks to:
PhracturedBlue, victzh, hexfet, closedsink, midelic, Hasi ...
@goebish
goebish / Eachine_X4_3D_TX.ino
Last active Aug 29, 2015
Eachine X4 3D TX.
View Eachine_X4_3D_TX.ino
// **************************************************************
// ******************* Eachine X4 3D Tx Code *******************
// by goebish on RCgroups.com
// Hardware any M8/M168/M328 setup(arduino promini,duemilanove...as)
// !!! take care when flashing the AVR, the XN297 RF chip supports 3.6V max !!!
// !!! use a 3.3V programmer or disconnect the RF module when flashing. !!!
// !!! XN297 inputs are not 5 Volt tolerant, use a 3.3V MCU or logic level !!!
// !!! adapter or voltage divider on MOSI/SCK/CS/CE if using 5V MCU !!!
// DIY Eachine X4 3D RF module - XN297 and circuitry harvested from stock controller
@goebish
goebish / CX10_Blue_PCB.ino
Last active Jun 5, 2018
Cheerson CX-10 Tx Arduino Code (blue PCB)
View CX10_Blue_PCB.ino
// Update : a xn297 is not required anymore, it can be emulated with a nRF24l01 :
// https://gist.github.com/goebish/ab4bc5f2dfb1ac404d3e
// **************************************************************
// ****************** CX-10 Tx Code (blue PCB) ******************
// by goebish on RCgroups.com
// based on green pcb cx-10 TX code by closedsink on RCgroups.com
// based largely on flysky code by midelic on RCgroups.com
// Thanks to PhracturedBlue, hexfet, ThierryRC
// Hasi for his arduino PPM decoder
You can’t perform that action at this time.