I’ve recently been offered aÂ Nabaztag rabbit. It’s able to do lots of little things such as reading RSS feeds, reporting the weather and air quality, … The problem is it’s not reliable: it sometimes crashes, repeats the same things over and over again. And most of all, it’s not very configurable except if you pay a subscription (but who might want to pay for something not working…). Anyway, it’s time for a “Do It Yourself” approach !
I’ve been play withÂ PIC audio sampling,Â ADCÂ andÂ PWMÂ for a while, and I have to say results are quite amazing ! Building a bot able to report the weather should be easy, provided:
- we’re able to produce a wav speech file from text (using text-to-speech, TTS)
- information from the Internet can be retreived and parsed
The principle is the following:
include sb_config include sb_protocol include sb_mainboard -- Configure PWM pragma target ccp1 rb0 pin_b0_direction = output include pwm_hardware_1 PWM_Init_Resolution(20,true,false) include sb_sound pwm_on() var byte char forever loop if sb_serial_read(char) then PWM_Set_DutyCycle(char,0) end if end loop
(there might be problems with the video: voice might be too low, this a mov-to-flv conversion problem…).
Hi ! This is the SirBot Project.Today, I’m gonna show you how to simulate those crappy Nabaztag stuff…
Here is the deal. I’m going to search information about the weather on the Internet.
Yahoo can help us. It has a great API to retrieve information about the weather.
So, let’s go !
I’ve been configured to check the weather on Paris.
So, here’s the weather report on Paris, France:
The weather is “Partly Cloudy”.
Temperature is “19″.