Skip to content

Instantly share code, notes, and snippets.

View fape's full-sized avatar

Farkas Péter fape

  • Budapest, Hungary
View GitHub Profile
@theely
theely / GPSLog.lua
Last active February 14, 2021 13:20
Rolling GPS latlong logging. Stores the latest 100 distinct latlong coordinates (redundant coordinates are ignored). Coordinates are stored in: /LOGS/GPS_rolling_positions.log. Logging is paused if less than 4 satellites are available.
-- License https://www.gnu.org/licenses/gpl-3.0.en.html
-- OpenTX Lua script
-- FUNCTION
-- Place this file in SD Card > /SCRIPTS/FUNCTIONS/
-- Author: Elia P.
-- Date: 2019 November 02
-- Description
@sbright33
sbright33 / stepper2.ino
Created November 30, 2012 20:38
Stepper library for 28BYJ-48
// This Arduino example demonstrates bidirectional operation of a
// 28BYJ-48, which is readily available on eBay for $4.25 inc shipping,
// using a ULN2003 interface board to drive the stepper. The 28BYJ-48
// motor is a 4-phase, 8-beat motor, geared down by a factor of 64. One
// bipolar winding is on motor pins 1,3 and the other on motor pins 2,4.
// Refer to the manufacturer's documentation of Changzhou Fulling
// Motor Co., Ltd., among others. The step angle is 5.625/64 and the
// operating Frequency is 100pps. Current draw is 92mA.
// Vin w USB power is 4.5v too slow for testing use 5v pin.
//#include <Narcoleptic.h>