RSS News Feed Reader
RSS News Feed Reader
The RSS News Feed Reader will allow user to download the RSS feed from the Internet and have it read out aloud through a speaker. The device will first connect to the Internet through an Ethernet cable and start downloading RSS feed into local buffer. The news will then show on the text LCD screen for user to choose from. Using a RPG, the users will be able to select a line of news that they want to hear. The device will use the Google text-to-speech API to convert the news into mp3 file and store it into a micro SD card for the speaker to play it out.
mbed Peripherals
- Test LCD Display
- For Displaying news
- Ethernet Connection
- For reading RSS news and using the Google text-to-speech API
- Micro SD Card/Card Reader
- For saving the text-to-speech mp3 file
- VS1053 mp3 Decoding chip
- For decoding mp3 file and playing it through the speaker
- Speaker
- Read the news
- RPG
- For users to select and play the news
User Instructions
1. Wait for the mbed to complete its Ethernet setup. Once the mbed successfully connects to the Internet, news number will show up on the LCD screen. 2. Use the RPG to scroll through the news and press the button on the RPG to select the news. Once a line of news is selected, the speaker will read it out.
Connection
SD card board connection:
MicroSD | mbed |
CS | P8 |
DI | P11 |
VCC | 3.3V |
SCK | P13 |
GND | GND |
DO | P12 |
CD | NC |
mp3 decoder board connection:
mp3 | mbed |
Vin | 3.3V |
RST | P15 |
DREQ | P16 |
GPIO 2 | NC |
GPIO 3 | NC |
BSYNC | P17 |
TX | NC |
RX | NC |
GND | GND |
RIGHT | NC |
GBUF | GND of speaker |
LEFT | Vcc of speaker |
GPIO 1 | NC |
GPIO 0 | NC |
SO | P6 |
SI | P5 |
SCLK | P7 |
CS | P14 |
RPG Connection:
RPG | mbed |
Pushbutton | P25 |
RPG signal1 | P26 |
RPG signal2 | P27 |
Ethernet breakout board connection:
Ethernet | mbed |
P1 | TD+ |
P2 | TD- |
P7 | RD+ |
P8 | RD- |
Text LCD display connection
Text LCD | mbed |
GND | GND |
Vcc | 5V |
V0 | to GND via 1k resistor |
RS | P10 |
RW | GND |
E | P18 |
D0 | NC |
D1 | NC |
D2 | NC |
D3 | NC |
D4 | P24 |
D5 | P23 |
D6 | P22 |
D7 | P21 |
Program
Import programlab3-News_Reader1
News_Reader
Problem encountered
Only one mp3 can be downloaded at one time. At first we thought it was due to the http formatting issue. Then suspect it was a mechanism Google employed to defend against abusing usage. But eventually it turns out to be the buffer was limited, only one or two mp3 can be stored at a time. To solve this problem, the buffer is cleared every single news title is read from the RSS feed source.
Future plans
Enable the device to read from multiple RSS new feed sources.
References
https://mbed.org/users/benglish6/notebook/universal-translator/
Please log in to post comments.