Skip to content

Commit

Permalink
version 1.2-3
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinlyonsrepo committed Mar 1, 2019
1 parent ade6174 commit 4d417af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ Libraries
In the "src" folder you will find the .ino file with C++ source code , it links to a number of
external libraries.

* <TEA5767.h> // FM module
* <TEA5767.h> // FM module https://github.com/andykarpov/TEA5767
* <Button.h> // buttons 1.0.0 https://github.com/madleech/Button
* <Adafruit_SSD1306.h> // 1.1.2 OLED
* <Adafruit_GFX.h> //v 1.2.2 OLED

All can be found on Arduino website site except the last two , these are on the adafruit site.

Software used
-----------------------------
Expand All @@ -33,28 +32,28 @@ Arduino 1.8.5
Features and Parts List
------------------------------

The Radio outputs selected Frequency and signal strength to the OLED a graphic is used to display signal level.
The Radio outputs selected Frequency and signal strength to the OLED, a graphic is used to display signal level.

In normal mode the two push buttons control freq of radio station.
One searches up the FM radio band the other down, for a station.

The SPDT switch controls entry to settings mode where station frequencies can be stored or loaded from the ATmega328's EEPROM. Six station can be stored. On entry there are two options LOAD or SAVE. Selected by Push buttons.
The SPDT switch controls entry to "settings mode" where station frequencies can be stored or loaded from the ATmega328's EEPROM. Six station can be stored. On entry, there are two options LOAD or SAVE. Selected by Push buttons.
If SAVE is selected the user can then select the memory location 1-6 in EEPROM and then press push button 2 to save
current frequency to that location.
If LOAD is selected user can browse saved stations and select the one they want.

The LM386 module has a potentiometer which controls volume.

The TEA5667 outputs an audio signal which is fed to the Lm386 Amplifier module which then sends it to the
speakers The speakers inputs are monitored by the KA2284 5-Level LED Audio Indicator. Higher the volume voltage
The TEA5667 outputs an audio signal which is fed to the LM386 Amplifier module which then sends it to the
speakers. The speakers inputs are monitored by the KA2284 5-Level LED Audio Indicator. Higher the volume voltage
the more LEDs come on.

The unit can be used as a radio or a speaker, by placing a removable audio cable between output
of TEA5767 and input of LM386 Audio amp. This connection is represented by the AUDIO label between
J2 and J3 on schematic.

1. For Radio mode leave cable in.
2. Headphones can be placed in the socket J2 Audio for alternative Radio mode but no volume control is available.
2. For Headphones Radio mode can be placed in the socket J2 Audio.
3. For speaker mode remove the cable then connect output of Audio device(PC, phone) to input of LM386 module (J3 Audio)

See eagle diagram and schematic in "doc" subfolder.
Expand Down
3 changes: 3 additions & 0 deletions src/fm_radio/fm_radio.ino
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ void DisplaySaveLoadMenu(uint8_t StationNum, uint8_t mode, double loaded_freq)
}

// Lets User load freq from EEPROM
// Returns a uint8_t value
//2:User has saved a freq
//1:User has returned the SPST to Vcc or Main postion.
uint8_t LoadEEPROM()
{
uint8_t StationNum = 1;
Expand Down

0 comments on commit 4d417af

Please sign in to comment.