Welcome

Conclusion

Does it work? See for yourself!

The song that plays wasn't tracked by me, by the way. It came in the Monotone zip as an example song, and according to the documentation, it was made by someone called virt.

As usual, the firmware is released under the GPLv3 and you can download it here. Be advised that this is a highly experimental transmitter: it'll probably output noise on restricted bands. When built in the way I used it, I'm fairly sure that due to the limited range, you shouldn't get into trouble, but please don't try amplifying the signal.

« Prev 3 

33 comments

ExileMage wrote at 7 Jan 2017, 1.44:

If I enable the CKOUT fuse then connect that to a coil of copper wire to use as an antenna, will it amplify the signal/range?

Bender wrote at 30 Mar 2016, 10.58:

Hi Sprite, thank you for inspiration!

Rasa wrote at 13 Jan 2016, 18.25:

Hi Sprite, and thank you for sharing such inspiring projects with us . I was really excited to test this on my attiny but because I'm rather new to this world of micro controllers and I was confused by the firmware you've shared .Could you please describe how to upload it to the chip?

ravishankar wrote at 6 Jul 2015, 21.00:

excellent superb coding..hatsoff...

paranoja wrote at 29 May 2015, 12.02:

Great idea, and good coding. Mine attiny was tx-ing at 108 MHZ, found it using RTLSDR. thinkin about making a script which picks up attiny tx and translates it through SDR, maybe packing some usefull info in music :)

Ghaith wrote at 24 Mar 2015, 5.30:

thank you for this interesting idea :) i'd like to ask you two questions please , the first one : can i use ATTINY 11 or ATTINY 13 instead of ATTINY 45 ? The second question : would you like helping me and upload the (.hex) or thr written code file for me and i'll be thankful for you generosity

Q. wrote at 29 Nov 2014, 18.10:

You are cruel - but you conveniently blame "virt". Your fan base will never forget you, or let you down or even give you up.

Brett wrote at 5 Jun 2014, 23.43:

Ignore that :) Got it.

Brett wrote at 5 Jun 2014, 22.18:

Great project. I might be missing something but when I try compile it is asking for "io.h" (#include from music.c file? Where would I get that? Thanks

Dimitris Zervas wrote at 8 Dec 2013, 1.38:

How can we amplify it (just a tiny bit) to make it work for 0.5-1m?

fogg wrote at 6 Nov 2013, 20.50:

I tried it and it worked - somewhat. I only get 18 MHz CPU clock, which is enough however, to receive the music around 90 MHz. I guess it depends on the original OCCAL value. In any case, when you enable the fuse CKOUT (i.e. 0xb1 instead of 0xf1 for the low fuse), you can get the clock signal on pin 3 (usually PB4). When you attach a small patch cable to it, you get much more poser for your bucks ;-).

Someone wrote at 9 Jul 2013, 2.39:

Which fuses does it need?

atmelfreak wrote at 7 Mar 2013, 19.18:

can you please upload the completed .hex file?

Sprite_tm wrote at 21 Feb 2013, 8.14:

EschatologicalEngineer: A drum beat doesn't sound right... if you copies my code, you should get about the same sound as in the video on this page.

EschatologicalEngineer wrote at 21 Feb 2013, 6.42:

Greetings Sprite, I have been following your projects for awhile and just decided to go ahead and give this one a shot for myself. I am really impressed by the simplicity of this brilliant project. This is a prime example of the potent data contained within Datasheets. I particularly enjoy reading Atmel datasheets, maybe something is wrong with me, but it has played a huge role in my didactic effort to acquire mad K-rad circuit skillz. I just wanted to check and make sure that my excitement was not due to the placebo of random interference or a stray signal sneaking inbetween those stations circa 96MHz.. Can you verify if the resulting embedded monotone music should sound like a drum beat, sort of like a cadence? I was able to pick it up very well directly above the ATTiny45 as it overpowered the other station signals, but when the receiver was moved away from the chip, the cadence was no longer audible and the stations dominated the frequency. Thank you sprite, for all of your contributions. This project has been an inspiration to me and I am glad that I gave it a shot today. I do hope that what I did hear was indeed evidence of an modulated overclocked frequency. Keep up the good work and Stay Fluxy!! -EschatologicalEngineer-KS

resistor wrote at 22 Dec 2012, 15.20:

my proplem: Build started 22.12.2012 at 15:16:28 avr-gcc -mmcu=attiny45 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main_pc.o -MF dep/main_pc.o.d -c ../../music/main_pc.c In file included from ../../music/main_pc.c:24:0: c:programmeatmelavr toolsavr toolchainbin../lib/gcc/avr/4.5.1/../../../../avr/include/ao/ao.h:61:33: error: expected ')' before 'bits' c:programmeatmelavr toolsavr toolchainbin../lib/gcc/avr/4.5.1/../../../../avr/include/ao/ao.h:62:2: error: expected ';' before 'void' c:programmeatmelavr toolsavr toolchainbin../lib/gcc/avr/4.5.1/../../../../avr/include/ao/ao.h:96:37: error: expected declaration specifiers or '...' before 'uint_32' c:programmeatmelavr toolsavr toolchainbin../lib/gcc/avr/4.5.1/../../../../avr/include/ao/ao.h:96:51: error: expected declaration specifiers or '...' before 'uint_32' c:programmeatmelavr toolsavr toolchainbin../lib/gcc/avr/4.5.1/../../../../avr/include/ao/ao.h:96:65: error: expected declaration specifiers or '...' before 'uint_32' c:programmeatmelavr toolsavr toolchainbin../lib/gcc/avr/4.5.1/../../../../avr/include/ao/ao.h:97:57: error: expected declaration specifiers or '...' before 'uint_32' ../../music/main_pc.c: In function 'main': ../../music/main_pc.c:42:5: error: 'ao_device' undeclared (first use in this function) ../../music/main_pc.c:42:5: note: each undeclared identifier is reported only once for each function it appears in ../../music/main_pc.c:42:16: error: 'ao' undeclared (first use in this function) ../../music/main_pc.c:43:5: error: 'ao_sample_format' undeclared (first use in this function) ../../music/main_pc.c:43:22: error: expected ';' before 'form' ../../music/main_pc.c:46:5: warning: implicit declaration of function 'ao_default_driver_id' ../../music/main_pc.c:47:5: error: 'form' undeclared (first use in this function) ../../music/main_pc.c:50:22: error: 'AO_FMT_NATIVE' undeclared (first use in this function) ../../music/main_pc.c:54:5: warning: implicit declaration of function 'ao_open_live' ../../music/main_pc.c:56:2: warning: too few arguments for format ../../music/main_pc.c:78:2: error: too many arguments to function 'ao_play' c:programmeatmelavr toolsavr toolchainbin../lib/gcc/avr/4.5.1/../../../../avr/include/ao/ao.h:97:6: note: declared here make: *** [main_pc.o] Fehler 1 Build failed with 13 errors and 3 warnings...

Sprite_tm wrote at 6 Dec 2012, 15.55:

atmelfreak: Thank you for that incredibly detailed symptom report. I, however, would like to suggest that if you think you need an editor to use this, you may be better off trying some simpler projects first.

atmelfreak wrote at 6 Dec 2012, 15.08:

it doesn't work. What for a programing editor i have to use?

Sprite_tm wrote at 22 Oct 2012, 10.11:

Favner: I don't see why not, to my knowledge the 85 is just a 45 with extra memory.

Favner wrote at 17 Oct 2012, 9.01:

Hi, Can I use the ATtiny85 instead if the ATtiny45 and get the same results? Will it the overclocking wirk? Thanks.

Sprite_tm wrote at 19 Mar 2012, 9.07:

John: I'd think the signal strength should be higher when you use 2 coin cells. I haven't done any tests on battery longevity; could take a day to drain them, could take months. You want the 20PU version, the 20 stands for the maximum speed and this application even drives the speed a bit over that.

John wrote at 19 Mar 2012, 1.00:

I'm new to avr programming. This has inspired me to make a bunch of these and install them in my friends' cars (and change all of their radio presets to the station, bwahahaha) You mention using only 1 coin cell vs. 2. Is there a difference in signal strength? Or just how long it will last? Also, while shopping for the attiny45 I've come across two types, the 10PU vs. 20PU. Which would you recommend for this project?

Andrč wrote at 30 Jan 2012, 21.09:

About getting signal out via timer1 - since signal is frequency divided, it should be square with strong 3rd harmonic, so tuning PLL to 66 Mhz will give 33Mhz timer1 output with 3rd harmonics of it radiating at 99Mhz - quite at FM range. Even though 3rd harmonic is ~5dB weaker, getting signal out to a pin can end up with radiated power even greater than from PLL itself.

Niek wrote at 28 Jan 2012, 17.19:

NOES I GOT RICK-ROLLED BY AN AVR!

vitaliy wrote at 28 Jan 2012, 3.50:

very, very cool!!! =)

Sprite_tm wrote at 27 Jan 2012, 15.11:

feudor: Afaik there's no way to output the 96MHz PLL clock anywhere. You can feed it into timer1 and set the divisor to the lowest value, but you'd still only have a 48MHz output.

feudor wrote at 27 Jan 2012, 10.25:

Is it really impossible to output the signal on a pin? Apparently, timer 1 can be clocked from the pll. So with a clever choice of the timer registers, like a upper limit of 1. How fast can we toggle a pin ?

Sprite_tm wrote at 27 Jan 2012, 10.01:

plaes: Where? The 96MHz doesn't really come out of any pin. It's probably possible to make the power supply wires longer to get a bit better reach, though. hboy: The calibration register itself is RAM; the factory calibration setting AVR set is copied there every startup. You can then change it without wearing out the cells.

plaes wrote at 27 Jan 2012, 9.38:

Have you considered adding a bigger antenna?

hboy wrote at 26 Jan 2012, 23.55:

That's such a sweet idea, thanks for the inspiration! But how long will the calibration register cells last?

Sprite_tm wrote at 26 Jan 2012, 0.42:

FYI: I just ninja-editted the article. It used to say that I ran the clock at 20MHz, which multiplied by 4 gives us the FM-frequency of 100MHZ... which is obviously wrong. I just fixed the code to overclock the AVR to 24MHz, and now you can indeed receive it at 96MHz on an FM-receiver. Why the previous 20MHz worked, I don't know, but I guess the radio picked up the fifth harmonic of the (square-wave-ish) 20MHz base clock.

harrstein wrote at 26 Jan 2012, 0.12:

rickrolled :D

bolt wrote at 25 Jan 2012, 23.33:

Here I was, about to go to bed, and you have to come and show me this. No sleep tonight. Need to make this. Damn you :)

Leave a comment:

Your name:

What does this picture say?
Sorry, this is a captcha

Your comment:


© 2006-2016 Sprite_tm - Contact