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
// ardu_alert.ino | |
// | |
// read serial port and turn leds on/off | |
// | |
// Mahesh Venkitachalam | |
// electronut.in | |
#include "Arduino.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
""" | |
ardu_alert.py | |
Alert Arduino via serial port when an event happens on the host computer. | |
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
//************************************************************ | |
// 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
""" | |
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
/* | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
Reference: | |
http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v9.0.0%2Findex.html |
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
#define BAUD 9600 | |
#define MYUBRR F_CPU/16/BAUD-1 | |
void USART_Init(unsigned int ubrr) | |
{ | |
/*Set baud rate */ | |
UBRR0H = (unsigned char)(ubrr>>8); | |
UBRR0L = (unsigned char)ubrr; | |
/*Enable receiver and transmitter */ | |
UCSR0B = (1<<RXEN0)|(1<<TXEN0); |
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
// HC-SR04-test.ino | |
// | |
// Get distance information from Ultrasonic Ranging Module HC-SR04 and | |
// send it via serial port. | |
// | |
// electronut.in | |
#include "Arduino.h" | |
int pinTrigger = 2; |
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
# Name: Makefile | |
# | |
# A Makefile for the ATtiny84. | |
# | |
# electronut.in | |
DEVICE = attiny84 | |
CLOCK = 8000000 | |
PROGRAMMER = -c usbtiny | |
OBJECTS = main.o |
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
# blinking an LED with Raspberry Pi. LED is connected on pin 18 (GPIO5) | |
# | |
# run this as: | |
# sudo python test.py | |
# | |
# electronut.in | |
import time | |
import RPi.GPIO as GPIO |
OlderNewer