Skip to content

Instantly share code, notes, and snippets.

View TAUTIC's full-sized avatar

Jayson Tautic TAUTIC

View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import csv
import itertools
import sys
country_codes = {
"AF": "AFGHANISTAN",
@raivisr
raivisr / ad9850.pde
Created October 9, 2012 21:12
AD9850 useful test sketch for Arduino(-s)
/*
Simple controller for AD9850 modules
Uses serial protocol (refer to AD9850 datasheet what pins need to be pulled up/down
Uses library by Elecfreaks http://elecfreaks.com/store/download/datasheet/breakout/DDS/EF_AD9850_library.zip
(for use with chipkit delete that unnecessary line "#include <avr/pgmspace.h>" from .h file)
Fix the pin numbers used to communicate with module
Serial comms - 9600, NewLine (0x0A) denotes end of input,
f 10000 - set frequency
s 20 20000 10 1000 - sweep from frequency to frequency using this step size in that many milliseconds
o 10 10000 5 3000 - oscillating sweep from frequency to frequency and back using this step size in that many ms