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
// | |
// For ease of use, and to avoid overwritting your settings, | |
// use pcb-gcode-setup to make changes to these settings. | |
// | |
real DEFAULT_Z_HIGH = 12.700000; | |
real DEFAULT_Z_UP = 2.540000; | |
real DEFAULT_Z_DOWN = -0.15; | |
real DRILL_DEPTH = -2.000000; | |
real DRILL_DWELL = 1.000000; |
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
// source: http://forum.arduino.cc/index.php?PHPSESSID=8lp97jhr4smvi9n29he0ii6eu2&topic=78430.msg2080222#msg2080222 | |
//ATmega328P sleep demo | |
// | |
//Wire the usual Arduino LED from PB5 (DIP pin 19, Arduino pin 13) to ground, through | |
//an appropriate current-limiting resistor. | |
//Wire a tactile button switch from INT0/PD2 (DIP pin 4, Arduino pin 2) to ground. | |
// | |
//The sketch will blink the LED three times, then go to sleep. |
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
Using https://github.com/SkyeSweeney/Striker and http://www.embeddedadventures.com/as3935_lightning_sensor_module_mod-1016.html | |
SREJ = 2 | |
NF_LEV = 2 | |
Gain = 12 | |
WDTH = 2 | |
ISR: Noisy | |
ISR: Noisy | |
ISR: Noisy | |
ISR: Strike |
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
Steps: | |
1. You need XCode developer tools (to get g++) | |
2. Below you can find the Makefile I'm using which on my system works. The paths are nasty hacks, but feel free to modify them.. | |
3. make binary can be found from "/Applications/Xcode.app/Contents/Developer/usr/bin//make" | |
4. I hacked missing LONG_LONG_MAX by defining it in main.cpp as | |
#ifndef LONG_LONG_MAX | |
#define LONG_LONG_MAX LLONG_MAX | |
#endif | |
5. Copy compiled binary to "/Applications/Cura/Cura.app/Contents" to make Cura to use it |
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
One-evening hacking for Rev remote controlled power outlet. | |
The transmitter sends long and short pulses for certain bit length (probably 25 bits). | |
UPDATD: Oscilloscoped from tx data pin (FOUND THEM!) | |
(Chan1 off) = 0101110111010100000011000 | |
(Chan1 on) = 0101110111010100000000110 | |
Short pulse=320us |
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
// Licensed under a Creative Commons Attribution 3.0 Unported License. | |
// Based on rcarduino.blogspot.com previous work. | |
// www.electrosmash.com/pedalshield | |
// sinewave.ino program creates a sinusoidal waveform adjustable in amplitude and frequency. | |
// potentiometer 0 controls the frequency. | |
// potentiometer 2 controls the amplitude. | |
// VERSION HISTORY: | |
// 5.1.2014 - j0uni : This version uses bitwise AND to get the "rolling" pointer to sinewave table. |
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
// O2 Minipops rhythm box (c) DSP Synthesizers 2016 | |
// Free for non commercial use | |
// http://janostman.wordpress.com | |
#include <avr/interrupt.h> | |
#include <avr/io.h> | |
#include <avr/pgmspace.h> |
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
/* Arduino Synth from | |
https://janostman.wordpress.com/2016/01/15/how-to-build-your-very-own-string-synth/ | |
*/ | |
#include <avr/interrupt.h> | |
#include <avr/io.h> | |
#include <avr/pgmspace.h> | |
#ifndef cbi | |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) | |
#endif | |
#ifndef sbi |
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
void setup() | |
{ | |
Serial.begin(115200); | |
Serial3.begin(100000); | |
pinMode(13, OUTPUT); | |
} | |
uint8_t buffer[255]; | |
uint8_t bufferPos=0; |
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
How to get fixed wing aeroplane work with DYS F4 FC work in iNav 1.7.2 By default the motor_2 output doesn't support servos. | |
Use this mixer: | |
# mixer | |
mixer CUSTOMAIRPLANE | |
mmix 0 1.000 0.000 0.000 0.000 | |
# servo | |
servo 1 700 2300 1400 125 -1 |
OlderNewer