spikenzielabs Solder:Time 495 Скачать руководство пользователя страница 6

In order to maximize battery life, we also used a couple of tricks. For the I2C bus we used higher value pull-up resistors (10k vs 4.7k) to reduce 
current and for the one unused pin on the PIC we set it to be a low logic value output (Microchip’s spec sheets, recommend this as a power 
saving set up). In testing the watch’s current draw, we estimated that given the average power of a CR2032 battery, the watch should keep the 
time for five years, before needing a battery swap in stand-by mode. Overall battery life will depend on how often the display is turned on. 

 

Seven Segment Display: 

The LEDs: One of the objectives when designing the Solder : Time was to make sure that all of the segments of the digits had equal brightness. 
In some cases only two segments are lit, as is the case for the number “1”, When the “8” is on, all seven segments are lit. Battery power was also 
a concern, the battery we chose for this project is the CR2032 which is a 3v low current battery. Our solution was to light only one single 
segment at a time, this way if the digit being displayed was a “1” or an “8” all the segments would be equally bright and we wouldn’t over tax 
the battery by drawing too much current. (If you wave the watch in the dark, you may be able to see the flashing pattern.) 

 

Use a timer: 

To light only one segment at a time we used one of the internal timer peripherals in the PIC. A timer may also be used as a counter, but in this 
case we used it as a timer to time the on time of each segment. When the timer runs out, the PIC programming jumps into a interrupt routine. To 
display a number, the PIC looks up the segments in a table that stores the on and off values for the segments. It starts with the first segment of 
whichever number it is displaying and then turns the segment on (or not, if that segment isn’t on). After this, the program returns to the normal 
main loop of the program and waits for the timer to run out again. When it does, the PIC turns on the next segment of the current digit. Even if 
the segment of the current digit is not turned on, the timer still waits. 

 

After all of the segments of a digit are displayed, the next digit is displayed, and after the last digit is displayed the colon is displayed and then it 
starts over at the first digit. 

 

Flashing Colon: 

There is a special case when displaying the colon. It flashes when in time setting mode. It took a few tries to get the flashing to look good and 
steady in the three states of the time setting mode; slow forward, fast forward and idle. To achieve a steady flash rate we used another timer. This 
timer simply toggles the colon on or off ever time that it times out, then when it is time to display the colon it is simply lit or not. 

 

Sleep Mode: 

For the Solder : Time’s sleep mode we use a manual counter variable. This variable is incremented every time the program goes through a loop, 
and when it over flows (gets too big for the size of the variables holder) a sleep flag is set and the watch goes to sleep. If the button is pressed 
before the watch goes into sleep mode, the sleep counter is reset to zero and counting starts again. This way, the watch will go to sleep 
consistently after about 5 seconds from the last time you pressed the button. 

 

Before the watch goes to sleep it turns off the LEDs. The watch button is set to wake the watch up if it is pressed. Nothing is done to the RTC 
since it goes into stand-by mode when no data is being transfered and it simply keeps the time. 

Using the Solder : Time 

To check the time: 

 

1.

 

On the right side of the Solder : Time, press button once and release. 

2.

 

Current time will display and after ~ five seconds display will go to sleep 

 

To set the time: 

 

1.

 

Press the button twice and hold it. 

Содержание Solder:Time 495

Страница 1: ...e also pads on the backside of the PCB for DC supply as well as an always on function Resistors Start by bending the leads to all three resistors to look like these in the photo Solder them in place and trim the leads They go in either direction Clock crystal The crystal for the real time clock is the very small silver part with two leads Solder this as in the photo IC and Capacitors Note 1 1 The ...

Страница 2: ...in place with the open edge facing down Taping the battery holder in place with masking tape while soldering it works best Another way to solder the battery holder without tape is to heat the pad and battery holder by placing the tip of your soldering iron on the PCB s battery pad and just barely touching the battery holder After a second or two add some solder Once one pad is soldered do the othe...

Страница 3: ......

Страница 4: ...plastic parts In order to protect the plastic parts during manufacturing they come covered by a thin plastic tape layer These should be removed before you assemble the watch NOTE 1 1 Only use something soft like your finger nail to scrape the edge of the protective layer and then peel it off ...

Страница 5: ...the top edge 1 1 Start with the plastic watch back oriented with the two larger holes at the top and bottom and place the PCB over it 2 2 Next place the plastic PCB layer part around the PCB with the open end facing down 3 3 Place the plastic switch layer on top of the PCB layer plastic The opening for the switch is on the right side 4 4 Place the switch lever into the space on the right side of t...

Страница 6: ... and then turns the segment on or not if that segment isn t on After this the program returns to the normal main loop of the program and waits for the timer to run out again When it does the PIC turns on the next segment of the current digit Even if the segment of the current digit is not turned on the timer still waits After all of the segments of a digit are displayed the next digit is displayed...

Страница 7: ...eased the colon will continue to flash time setting mode is still active 2 If the button is not pressed again for around five seconds the watch will go to sleep The next time it wakes up it will be in normal time display mode 3 If the button is pressed again before the watch goes to sleep the slow advance is restarted More Info Note The slightly wider end of the button level is down and the thinne...

Страница 8: ...rposes SpikenzieLabs retains all rights to the design look source code and firmware Reproduction is allowed only for personal use No commercial reproduction is allowed without previous written approval from SpikenzeLabs Trademark Solder Time is a trademark of SpikenzieLabs Source Code Assembly File Here is the source code for the Solder Time written in assembly Use Microchips MPLAB to modify the c...

Страница 9: ...HEX Watch HEX zip ...

Отзывы: