View main.c
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
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#define F_CPU 8e6 | |
#include <util/delay.h> | |
/* | |
FUSES = { | |
.low = 0xE2, //INTRC 8 MHZ, no CKDIV8 | |
.high = 0xD9, // geen bootloader | |
.extended = 0xFF, // geen BOD |
View sinetable.py
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
import math | |
import matplotlib.pyplot as plt | |
sintable = " " | |
sinplottable =[] | |
sinplotfull = [] | |
# for conversion from volts to adc ticks | |
vfull=3.3 | |
fullscale = 4096 |
View main.c
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
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#define F_CPU 8e6 | |
#include <util/delay.h> | |
/* | |
FUSES = { | |
.low = 0xE2, //INTRC 8 MHZ, no CKDIV8 | |
.high = 0xD9, // geen bootloader | |
.extended = 0xFF, // geen BOD |
View main.c
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
/* | |
* Atmega328p-based DC-AC converter to ring a T65 phone. | |
* http://www.eluke.nl for schematic | |
*/ | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#define F_CPU 8e6 | |
#include <util/delay.h> |
View runradio.service
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
[Unit] | |
Description="run web radio receiver" | |
After=multi-user.target | |
[Service] | |
Type=simple | |
User=USERNAME_HIER_INVULLEN | |
Group=USERGROUP_HIER_INVULLEN | |
ExecStart=/usr/bin/python3 /home/USERNAME/runradio.py |
View optical_distance_sensor.ino
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
/* | |
simple example for optical distance sensor with IR LED and BPW40 | |
LED has 470R series resistor and is connected to pin given as IRLED (Pin 8 / PB0) | |
BPW40 is wired with collector to +5V, emitor to 1k8 to ground. | |
Emitor of BPW40 is capacitively coupled with 100 nF to pin given as BPW40 (pin A1, PC1) | |
That pin also has a 100k resistor to ground | |
(D8) + 5V | |
| | | |
470R | |
View runradio.py
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
#!/usr/bin/env python3 | |
# requires `mplayer` to be installed | |
# v1.0 | |
# https://raspberrytips.nl/internet-radio-luisteren-raspberry-pi/ | |
#modified to use vlc and a simple hd44780lcd + 3 buttons | |
import time | |
import os | |
import sys |
View slicer_vinylcut_config.ini
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
# generated by Slic3r 1.3.0 on 2022-01-30 13:05:52 | |
adaptive_slicing = 0 | |
adaptive_slicing_quality = 75% | |
avoid_crossing_perimeters = 0 | |
bed_shape = 0x0,190x0,190x190,0x190 | |
bed_temperature = 0 | |
before_layer_gcode = | |
between_objects_gcode = | |
bottom_infill_pattern = rectilinear | |
bottom_solid_layers = 0 |
View DemoReel100_modified.ino
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
#include <FastLED.h> | |
FASTLED_USING_NAMESPACE | |
// FastLED "100-lines-of-code" demo reel, showing just a few | |
// of the kinds of animation patterns you can quickly and easily | |
// compose using FastLED. | |
// | |
// This example also shows one easy way to define multiple | |
// animations patterns and have them automatically rotate. |
View main.c
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
#include <msp430.h> | |
#include <stdbool.h> | |
/** | |
* slim solarlampje. | |
* Doel: | |
* aan net voor zonsopgang tot zonsopgang, | |
* aan na zonsondergang, maar beperkte tijd (niet hele nacht) | |
* dus de "vorige" zonsondergang/opgang onthouden. | |
* |
NewerOlder