![]() ![]() Despite the display silliness, it actually will run for 101 hours. ![]() If it were actually modulo 100 hours then it would zero out a 100 hour (or 200 or 300.) countdown immediately, instead these wrap to 99 hours, 59 minutes, and 59 seconds on the first tick.ĮDIT: For grins I'd started a 101 hour timer a bit over an hour ago before stepping away from the computer. The display is showing it that way, but since it has the real time stored internally it still counts down. So, yes, it's buggy.ĮDIT: It's not actually modulo 100 hours, I should note. It also doesn't seem to let me enter 30 minutes as a timer, but most other minutes times work. So the actual time is in there somewhere, just showing up wrong in both places. While the page itself claims it's a one hour timer (59 minutes and some seconds). The page title will (very quickly) show "10:05:9x" where x is the 10s digit of the seconds. But then the page title, which is meant to show the current countdown in the tab display, gets updated to show the full time, but weirdly formatted. It does not store any personal data.Anything over 100 hours gets recalculated modulo 100, so 101 hours becomes 1 hour. The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. The cookie is used to store the user consent for the cookies in the category "Performance". This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. The cookies is used to store the user consent for the cookies in the category "Necessary". ![]() The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". ![]() The cookie is used to store the user consent for the cookies in the category "Analytics". These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. I wrote some articles some time ago on my journey with the PICAXE chips: The only other thing you’d need is a programming lead. I’ve played with these chips and they are really easy to use.You can get a kit with a PICAXE 08m2, PCB, LEDs and switches, battery box, that would get you started for a proof-of-concept, and you could then fit the result into your case using a smaller PCB or even veroboard. Their smallest chip, the 8-pin 08M2, would easily do what you need. They are programmed in BASIC which you may already know, are cheap and easy to use. The only thing I would add is that if you can’t program in C or assembler you could consider the PICAXE chips. So I came to the same conclusion as Aubrey above (he is a smart guy and beat me to it!). I was thinking about this after my post above and while a 555 is quick and easy and does not involve any programming, getting a reliable 1 hour delay would need a very high resistor (22Meg) and capacitor (up to 1000 uF) and any leakage in the capacitor would render the results erratic or unusable. How accurate do you need the 1 hour delay? Would +/- 10 seconds be OK, or +/- 1 second, or does it have to be accurate to a millionth of a second? Suppose someone turns the toggle switch On and Off again and the LED turns On - now suppose that after 30 minutes the switch is again turned On and Off - does the LED still go off in 30 minutes time, or does the 1 hour count restart from the second toggle of the switch? Suppose someone turns the toggle switch on and leaves it on for 2 hours - does the LED also stay on for 2 hours, or does it turn off after 1 hour, or does it stay in for 1 hour after the switch has turned off? When you say “switch,” do you mean a toggle switch - something like a light switch in a house - or do you mean a momentary push-button switch?Īssuming a toggle switch, starting from an OFF condition, does flicking the switch ON cause the LED to come ON? When does the 1 hour delay start? I mean, does it start when the toggle switch is turned ON, or when it’s turned OFF again. What would be the best approach to accomplish this?” Hi Jason - I agree with the earlier answers - we need a bit more information - you say “I need a LED to be turned on via a switch and remain on for 1 hour. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |