Skip to content

Instantly share code, notes, and snippets.

View Electronza's full-sized avatar

Teodor Costachioiu Electronza

View GitHub Profile
@Electronza
Electronza / Heart Rate Click: On EasyPIC v7
Last active May 3, 2020 07:50
Heart Rate Click: On EasyPIC v7, with MikroC code
# Project page
# https://medium.com/electronza/heart-rate-click-on-easypic-v7-ab26fd558254
@Electronza
Electronza / Vreg click code
Last active March 22, 2021 04:38
VREG Click: adjustable power supply with Arduino Uno
# Project page
# https://medium.com/electronza/vreg-click-adjustable-power-supply-with-arduino-uno-2c61422e17bd
@Electronza
Electronza / SmartMP3_routines.c
Last active May 2, 2020 13:26
EasyPIC v7: Talking breathalizer
#include <built_in.h>
// CODEC V1053E connections
sbit MP3_CS_Direction at TRISC1_bit;
sbit MP3_CS at LATC1_bit;
sbit MP3_RST_Direction at TRISC2_bit;
sbit MP3_RST at LATC2_bit;
sbit DREQ_Direction at TRISC7_bit;
sbit DREQ at RC7_bit;
sbit BSYNC_Direction at TRISC6_bit;
@Electronza
Electronza / Arduino Due Text to Speech
Last active May 2, 2020 12:52
Arduino Due: S1V30120 text to speech
# Project page
# https://medium.com/electronza/arduino-due-s1v30120-text-to-speech-507eedeb18cb
@Electronza
Electronza / main.c
Created April 28, 2020 09:03
MPLAB Xpress: XC8 code for SHT1x click board
// get/set SDA_pin aliases
#define SDA_pin_TRIS TRISC3
#define SDA_pin_LAT LATC3
#define SDA_pin_PORT RC3
#define SDA_pin_WPU WPUC3
#define SDA_pin_ANS ANSC3
#define SDA_pin_SetHigh() do { LATC3 = 1; } while(0)
#define SDA_pin_SetLow() do { LATC3 = 0; } while(0)
#define SDA_pin_Toggle() do { LATC3 = ~LATC3; } while(0)
#define SDA_pin_GetValue() RC3
@Electronza
Electronza / dgs-h2s.ino
Created April 26, 2020 12:55
SPEC H2S Sensor demo code for firmware 15SEP17
// SPEC H2S Sensor demo code
// This code works with sensor firmware 15SEP17
// #define SERIAL1_RX_BUFFER_SIZE 256
// #define SERIAL1_TX_BUFFER_SIZE 256
// Sensor values
// The format of the output is: SN[XXXXXXXXXXXX], PPB [0 : 999999], TEMP [-99:99],
// RH[0:99], RawSensor[ADCCount], TempDigital, RHDigital, Day[0:99], Hour [0:23]
// Note that on Arduino Due integer variable (int) stores a 32-bit (4-byte) value.
@Electronza
Electronza / main.c
Created April 23, 2020 11:43
MPLAB Xpress obstacle avoiding robot
/**
Generated Main Source File
Company:
Microchip Technology Inc.
File Name:
main.c
Summary:
@Electronza
Electronza / main.c
Created December 19, 2019 09:24
MPLAB Xpress: MP3 click piano
/*******************************************************************
____ __ ____ ___ ____ ____ __ __ _ ____ __
( __)( ) ( __)/ __)(_ _)( _ \ / \ ( ( \(__ ) / _\
) _) / (_/\ ) _)( (__ )( ) /( O )/ / / _/ / \
(____)\____/(____)\___) (__) (__\_) \__/ \_)__)(____)\_/\_/
Project name: MPLAB Xpress: MP3 click piano
Project page: https://electronza.com/mplab-xpress-mp3-click-piano/
********************************************************************/
@Electronza
Electronza / drum-machine.ino
Created December 19, 2019 09:09
chipKIT: TouchClamp click drum machine
/*******************************************************************
____ __ ____ ___ ____ ____ __ __ _ ____ __
( __)( ) ( __)/ __)(_ _)( _ \ / \ ( ( \(__ ) / _\
) _) / (_/\ ) _)( (__ )( ) /( O )/ / / _/ / \
(____)\____/(____)\___) (__) (__\_) \__/ \_)__)(____)\_/\_/
Project name: chipKIT: TouchClamp click drum machine
Project page: https://electronza.com/chipkit-vs1053-touchclamp-drums
********************************************************************/
@Electronza
Electronza / theremin.ino
Created December 19, 2019 09:02
Flip and Click "Theremin"
/*******************************************************************
____ __ ____ ___ ____ ____ __ __ _ ____ __
( __)( ) ( __)/ __)(_ _)( _ \ / \ ( ( \(__ ) / _\
) _) / (_/\ ) _)( (__ )( ) /( O )/ / / _/ / \
(____)\____/(____)\___) (__) (__\_) \__/ \_)__)(____)\_/\_/
Project name: Arduino Due / Flip and Click "Theremin"
Project page: https://electronza.com/flip-click-theremin-arduino-due/
Description: Theremin with Sharp distance sensors and MIDI
********************************************************************/