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
// main.c | |
// | |
// A simple blinky program for ATtiny85 | |
// Connect red LED at pin 2 (PB3) | |
// | |
// electronut.in | |
#include <avr/io.h> | |
#include <util/delay.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
# Makefile for programming the ATtiny85 | |
# modified the one generated by CrossPack | |
DEVICE = attiny85 | |
CLOCK = 8000000 | |
PROGRAMMER = -c usbtiny | |
OBJECTS = main.o | |
# for ATTiny85 | |
# see http://www.engbedded.com/fusecalc/ | |
FUSES = -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m |
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
""" | |
ldr.py | |
Display analog data from Arduino using Python (matplotlib) | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
""" | |
import sys, serial, argparse |
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
//************************************************************ | |
// attiny84-hacks.c | |
// | |
// Various snippets of code that I have developed for | |
// the ATtiny84 | |
// | |
// Author: Mahesh Venkitachalam | |
// Website: electronut.in | |
//************************************************************ |
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
""" | |
alganal.py | |
Description: | |
A utility program to plot algorithmic time complexity of a function. | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
""" |
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
""" | |
koch.py | |
Description: | |
A program that explores the Koch snowflake and the Thue-Morse sequence. | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
""" |
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
""" | |
test_HW_PWM.py | |
For testing the hardware PWM capabilities of the Raspberry Pi Model A+. | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
""" | |
import wiringpi2 as wiringpi |
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
""" | |
test_HW_PWM_servo.py | |
Driving two servos with the hardware PWM on a Raspberry Pi Model A+. | |
Connect GPIO18 and GPIO13 to servo signal pins. Connect GND of Pi to GND of Ser\ | |
vos. Use separate power supply (5V) for servos. | |
Author: Mahesh Venkitachalam | |
Website: electronut.in |
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
""" | |
dht11_thingspeak.py | |
Temperature/Humidity monitor using Raspberry Pi and DHT11. | |
Data is displayed at thingspeak.com | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
""" |
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
// esp8266_test.ino | |
// | |
// Plot LM35 data on thingspeak.com using an Arduino and an ESP8266 WiFi | |
// module. | |
// | |
// Author: Mahesh Venkitachalam | |
// Website: electronut.in | |
#include <SoftwareSerial.h> | |
#include <stdlib.h> |