Skip to content

Random MAC address generator for Arduino Ethernet Shield (static MAC generator)

I wanted a simple random MAC address generator for Arduino Ethernet Shields that lack one. I couldn't find one, so I wrote my own, which you can find here: https://ssl.crox.net/arduinomac/.

Inspired by http://nicegear.co.nz/blog/autogenerated-random-persistent-mac-address-for-arduino-ethernet/. The reason I'm not using this approach is that in most cases I want the MAC address to be static.
  • Twitter
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Random MAC address generator for Arduino Ethernet Shield (static MAC generator)
  • Mixx Random MAC address generator for Arduino Ethernet Shield (static MAC generator)
  • Bloglines Random MAC address generator for Arduino Ethernet Shield (static MAC generator)
  • Technorati Random MAC address generator for Arduino Ethernet Shield (static MAC generator)
  • Fark this: Random MAC address generator for Arduino Ethernet Shield (static MAC generator)
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at YahooMyWeb
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at Furl.net
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at reddit.com
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at blinklist.com
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at Spurl.net
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at NewsVine
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at Simpy.com
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) at blogmarks
  • Bookmark Random MAC address generator for Arduino Ethernet Shield (static MAC generator) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

"Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source

I hate having to set clocks. Most of our clocks at home get the time from Internet or from the DCF77 time signal.

The problem with the DCF77 time signal is that it is quite sensitive to environmental noise from lamps or other appliances, and the reception inside buildings can be problematic in some places.

I recently installed a clock in such a location. Using Udo Klein's DCF77 analysis tool it was clear that it would be nearly impossible to get the clock to work properly as initially planned, so I started looking for solutions:

- bigger antenna (eg this one)
- external antenna
- external receiver
- different time source

For different reasons, the only viable option seemed to be a different time source. But I did not want to change the clock design. While researching a solution, I came across the Chronvertor. Although this would allow to run the clock without DCF77 signal, the clock would still have to be set from time to time (due to lack of precision of the RTC, but at least twice per year for DST adjustments), so I quickly dismissed that option. However it provided inspiration for what I eventually ended up building: a NTP to DCF77 "adapter".

I had experimented previously with the TimeNTP example from the Arduino Time library, and there was plenty of information available online about the DCF77 signal, so this quickly appeared to be a viable option. This is the result: ntp2dcf.ino.
  • Twitter
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source
  • Mixx "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source
  • Bloglines "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source
  • Technorati "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source
  • Fark this: "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at YahooMyWeb
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at Furl.net
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at reddit.com
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at blinklist.com
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at Spurl.net
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at NewsVine
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at Simpy.com
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source at blogmarks
  • Bookmark "Convert" NTP to DCF77 - generate a DCF77 signal on an Arduino using an NTP time source with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0

  • instead of including wiring.h, WProgram.h, WConstants.h and pins_arduino.h, you only need Arduino.h

  • Wire.send() is now Wire.write(), Wire.receive() is now Wire.read()

    • If you get error messages like "call of overloaded ‘write(int)’ is ambiguous", you probably need to add "(byte)" before a constant argument, eg: Wire.write((byte)0x00);

  • It is possible to use conditional statements to write code that is compatible with older and newer versions, eg:
    #if ARDUINO >= 100
    #include "Arduino.h"
    #else
    #include "WProgram.h"
    #endif

  • More complete list and additional information:


  • Twitter
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Mixx Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Bloglines Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Technorati Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Fark this: Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at YahooMyWeb
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at Furl.net
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at reddit.com
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at blinklist.com
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at Spurl.net
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at NewsVine
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at Simpy.com
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at blogmarks
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca
Defined tags for this entry: