Go Down

Topic: Lighthouses (Read 2 times) previous topic - next topic

Udo Klein

In the German Arduino Forum someone was asking for a lighthouse emulator. Here is my implementation for it.

http://blog.blinkenlight.net/2013/03/01/lighthouses/
http://blog.blinkenlight.net/experiments/basic-effects/lighthouses/

IMHO the slickest part is how you declare the lighthouse parameters :)

-Udo
Check out my experiments http://blog.blinkenlight.net

Coding Badly

Code: [Select]
static uint16_t phase = setOutput(led);

...is clever but may not work correctly for some Arduino / library functions.  Static initializers are called before init.

Coding Badly


200 ON,  2800 off,  200 ON,  2800 off,  200 ON,  5800 off ?

I always assumed lighthouse sequences were just on for a bit then off for a bit.  Probably a good thing I haven't spent much time on any boats.   :D

Coding Badly


That is a clever solution.  I like it.  (Which is saying something because I can't stand templates.)

Udo Klein

I know that static initializes are called before init. However in this case this does not matter.

The timings are official timings of the lighthouses. I think 5800 off is not that bad if you think about the top speed of a vessel that has to rely on lighthouses.

And thanks for the flowers with regard to the templates.
Check out my experiments http://blog.blinkenlight.net

dakrause

Here is a video of my implementation of an Arduino-based rechargeable solar-powered lighthouse:
https://www.youtube.com/watch?v=2X5tkGtOdzo&feature=youtu.be


Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview