Posts

WiFiChron with ATmega1284

Image
The WiFiChron code, with support for ESP8266, nearly reached the program memory limit of ATmega328, yet still missing a few features, the most important being the much needed debugging capability. Naturally, the next step in WiFiChron 's evolution was to upgrade to Atmega644P/1284P. Since there was no room on the board for the 40-pin DIP package, I settled for the SMD version. The schematic is shown below. Although functional, the board I designed is far from perfect: requires pull-up resistors for buttons; I relied on software pull-up, but that does not work in the current Sanguino library; requires a couple of more decoupling capacitors; (I soldered all these extra parts on the bottom side of the PCB, as shown in the next photo. The 595 shift-register is soldered on the bottom by design. The next revision will have the currently missing parts in the SMD package.) The WiFiChron-1284 board has the same dimensions as the previous revision , and it still fits in the Serpac A20 box....

From the mailbox

Image
AlexP managed to port the Wise Clock 4 code to Arduino Mega2560 (shared here , thanks Alex!). He made this video demonstrating it in action: Today I had a great day! I did it! I soldered a development board for my Mega2560. A little corrected code and ... voila!   Wiring diagram: rtc sqw (1hz) - pin 2 menu key - pin 3 set key - pin 4 plus key - pin 5 speaker - pin 6 speaker - pin 7 HT1632_WRCLK - pin 10 HT1632_CS - pin 11 HT1632_DATA - pin 12 HT1632_CLK - pin 13 rtc sda - pin 20 rtc scl - pin 21 (SD while not tested, but I think it works) sd miso - pin 50 sd mosi - pin 51 sd sck - pin 52 sd cs - pin 53 NelsonC built his own hand-wired version of WiFiChron and it looks awesome: MikeM sent in (thanks Mike!) his latest WiFiChron code (available here ). The enclosed zip file compiles under Arduino 1.6.8, though it generates a warning I haven't figured out how to eliminate. Ray ran into a problem with data overruns. When data in an RSS feed was split between multiple packets, so...

Wise Clock 4 software for Arduino 1.6.8

Image
Scott H. put the time and the effort to port the Wise Clock 4  code (also the HDSP-Proverb and WiFiChron code) to Arduino 1.6.8 (the latest, but maybe not the greatest). This is a big endeavor, which I did not plan to pursue any time soon. Now, thanks to Scott, here we have it . I compiled it and uploaded it myself, on Windows (he did it on Mac). The Wise Clock 4 files are all in the same " TheClock " folder, directly under " libraries ", as shown in the following screenshot. But before uploading to ATmega1284, this section needs to be inserted in boards.txt (*): ############################################## atmega1284.name=Sanguino W/ ATmega1284p 16mhz atmega1284.upload.tool=avrdude atmega1284.upload.protocol=stk500v1 atmega1284.upload.maximum_size=129024 atmega1284.upload.speed=57600 atmega1284.bootloader.low_fuses=0xFF atmega1284.bootloader.high_fuses=0x98 atmega1284.bootloader.extended_fuses=0xFD atmega1284.bootloader.path=atmega atmega1284.bootloader.file=a...

GPS-synchronized Mondrian clock

Image
The challenge was to add GPS to this "basic LED matrix clock". Since I don't see the point of a GPS clock that does not show seconds, I had to figure out how to fit 6 digits on the 8x16 LED matrix. One way to do it is this: as used by the " Matrix Clock V1.0 ". Kind of hard to distinguish between 0 and 8 though. Another way is based on MixiClock , where 4 digits are crammed in a 8x8 (tri-color) matrix. (This was more than 4 years ago. Incredible how little progress I made since.) As for the name, I settled for "Mondrian" because  Kandinsky  was already taken :) The hours are shown in red, the minutes in green and the seconds in orange. After power up, the seconds blink until the GPS time is received (less than 5 minutes in my house, more than 3 meters away from the nearest window). Only the minutes and the seconds are synchronized (but not the hours). The Mondrian clock is made of 2 boards: the wsduino with the GPS Bee plugged in (and the antenna aff...

A recap of Wise Clock 4 features

The list of code changes and new features at the top of the source files (see WiseClock.cpp , for example) grows longer and longer. I thought of getting this list out in the open, for the people who are not particularly interested in the C++ code or just don't want to look at the source code (or release notes file for that matter, not updated in a long while though) to find out what Wise Clock 4 can do. 1. First and foremost, Wise Clock 4 displays quotes retrieved from text file(s) stored on SD card, with both  FAT16 or FAT32 file systems being supported. This piece of functionality is still the core of the software. 2. Secondly, Wise Clock 4 displays the time retrieved from DS3231 extremely accurate real time clock chip. (These first two features inspired its name: "wise" and "clock" :) 3. The display is tri-color (red, green, orange) LED matrix with a minimum resolution of 16x32 and a maximum of 16x128. Currently, the resolution is hard-coded, meaning t...

Add light sensor to Wise Clock 4

This is long overdue. As we know, the display brightness on Wise Clock 4 can be changed between 5 levels, by pressing the "Plus" button. To adjust the brightness automatically, based on the light conditions, we need to add a light-sensitive sensor of some sort, and the most common is the LDR (light-dependent resistor). Any of the countless articles and tutorials on Arduino + LDR will teach how to connect the LDR to an analog pin, using a voltage divider. For Wise Clock 4 , the LDR is connected between A0 (pin 40 of the processor) and ground, with a 10k resistor between A0 and Vcc, as shown below:   GND|----[ LDR ]---A0---[10k resistor]----+Vcc The automatic brightness adjustment is enabled in software with this macro (in file UserConf.h ): // use an LDR (connected to A0) to automatically adjust // (every 5 seconds) screen brightness to ambient light; #define AUTO_BRIGHTNESS and implemented in this new function: void WiseClock::checkBrightness() { #ifdef AUTO_BRIGHTNESS ...

Simplest method to download facebook videos without any software

Image
Hi friends, In last post I have illustrated you how to stop autoplay of videos on facebook , a new feature provided by facebook. This post will tell you the simplest method to download videos from facebook, which you can't download by simply right click. This is as simple as latter. Steps: Read more »