Christmas is coming closer, so here is my contribution to put you in the right mood. It is a blog hitcounter, that rings a bell. Literally. It puts a smile on your face, every time someone hits your blog.

It consists of an Arduino board, a bell, a servo and a couple of lines of code in c, python and php. Most parts are fairly common and should be easy to get.

Step 1: Tools and Materials

So what is needed?

  • Arduino Board. I got an Arduino Diecimila from Adafruits. In the meantime there are really cheap and handy clones out there, e.g. the really bare bone board from Modern Devices, especially if you want to use them on a breadboard.
  • A servo motor. Any servo will do. I took an old one that was used in my former hobby.
  • A bell. Preferably one that is small enough to shake it with the servo.
  • Two paperclips. A large one to hold the bell and a small one to build the actuator to ring the bell.
  • Wires to connect the servo with the Arduino.
  • A website. In fact it has not to be a website or a blog. Actually everything that can be counted, will work.
  • A PC or a Mac to connect the Arduino board with the blog or website.
You may need an soldering iron, if the wires can not be connected directly to the Arduino.
<p>The python script crashes when the counter gets to 10. Any solutions?</p>
<p>Nice project! :---)</p>
Can you change the code so that an LED Blinks when it gets a hit? Thanks. Please reply soon!
There is a servo motor on Amazon for a pretty good price: <a href="http://amzn.to/VGbozq" rel="nofollow">Servo Motor on Amazon</a>
If I wanted to connect a Normal DC Motor to the Arduino which only has two connector pins, how would i do it??
I wouldn't recommend doing this. There are motor controllers for the Arduino that can handle the current requirements of DC motors.
Where is the code that needs to be put into the computer program? <br>
Take a look at step 5.
If I wanted to connect a Normal DC Motor to the Arduino which only has two connector pins, how would i do it??
You can't because the motor needs too much current. You have to use an H-bridge or a motor shield from adafruit or something like that.<br>
If I wanted to use a Piezo and an LED would the coding be much different??
Piezo and LED can be driven directly from the Arduino. Maybe look for an Arduino tutorial to learn how to deal with LEDs and Piezos.
This is such a great idea, and inspired my own interpretation, which is standalone - no computer required. Have a look here:<br><br>http://www.instructables.com/id/Arduino-standalone-web-enabled-bell/
Ring the bell every time someone tweets &quot;Merry Christmas&quot;? Not sure how, though.
Will it work with twitter?
Did you manage to implement this with twitter? and if so would you be willing to share the code?<br><br>Thank you
What do you mean, ring the bell when someone replied to you on twitter?<br>Yes, that should be no problem.
I was looking for the bell and found a bunch of places at google shop - http://bit.ly/aCeJtS
how would i set up this hit counter thing with a google site? would it work at all? im not planning on actually doing this instructable, i might when i get spare time and money, but i would like to actually know if it would work.....
&nbsp;i'd like to implement this with blogger (http://ilictronix.com), but blogger doesn't support php :( &nbsp;is there a way I could write to a file with javascript?<br /> <br /> hearing this every 15 seconds might get annoying :P<br />
So what does the python script do when it sees someone visited your site?
It fetches a small text file from my site. This text file carries the number of hits. If the number of hits is higher than last time, then trigger the bell.
XD Yes i know that part how does it trigger the bell?
It sends a signal via serial port to the Arduino. Do you mean that?
What signal(you are not being descriptive...)
Take a look at the python snippet:<br/>while (True):<br/>_ counter = urllib.urlopen(myUrl).read()<br/>_ delta = int(counter) - int(last_counter)<br/>_ print &quot;counter: %s, delta: %s&quot; % (counter, delta)<br/>_ ser.write(chr(ord(chr(delta))))<br/>_ last_counter = counter<br/>_ time.sleep(10) <br/><br/>It computes the delta between the last counter value and the current counter value. Say, the old value was 112, now it is 115. Next the delta, 3 is send as byte over the serial port to the Arduino. The Arduino reads the byte and rings the bell three times.<br/>
Ah that makes more sense now.
Wow nice Project!
and that thing with the loop (thats a reoccuring problem in alot of skeches)
my arduino barly takes any codes wthout saying error -.- and this one seems to say that... in function ' void loop () ' : error: ' refresh ' is not a member of ' servo '
Hi Akatsuki666, try deleting the line with refresh. If you are using the latest version of the ArduinoIDE, the method "refresh" is no longer available. Cheers, Alex
hahah i love it , 5* and faved!<br/><br/>i have to ask , i didnt see it in your description. but what is your your macbook playing ?? it sounds like you have got the termnal to sing! useing the saay command???<br/>
Hi Luke,<br/>take a look at this: <a rel="nofollow" href="http://en.wikipedia.org/wiki/File:Jingle_Bells_Or_The_One_Horse_Open_Sleigh_Complete.ogg">http://en.wikipedia.org/wiki/File:Jingle_Bells_Or_The_One_Horse_Open_Sleigh_Complete.ogg</a><br/>Cheers,<br/>Alex<br/>
<a rel="nofollow" href="http://www.youtube.com/results?search_query=golfrobot+sigtuna&search_type=&aq=f">www.youtube.com</a>Good work. my son (says proud father) made similar use of the RC servos in a Golf Robot RC. Can be found on youtube.com under this name... <a rel="nofollow" href="http://www.youtube.com/results?search_query=golfrobot+sigtuna&amp;search_type=&amp;aq=f">http://www.youtube.com/results?search_query=golfrobot+sigtuna&amp;search_type=&amp;aq=f</a><br/>
Is it possible to hook it up to anything else? say... when some body talks to u on msn and ur in the next room, cud u hook that up? or instructables comments? Just idea, but this wud be soooo neat to try out for them.
Hi Kryptonite, yes, that would be possible. You would have to modify the python script to fetch an RSS feed for example. Most messaging systems or comments are availble as RSS feed. If a new message or comment is available in the feed, the python script will receive it and notify the Arduino/bell. For the comment feed on instructables, go to your profile and enable your private feed. Cheers, Alex
Sweet. thanks for the quick reply. I'm seriously thinking about making this now, cuz I play this game, and I can't tell if somebody want to talk to me I don't know. Then an hour later I go see, and the person has logged off. thanks, Kryptonite.
wow this is sweet I saw this a while back but I ignored it because I didn't have an arduino but now that I got one this will be my first project :) Thanks!
Added to Arduino Group! ;D
Nice job! Looks like it would get annoying after a while...
This is such a cool project using the Arduino. I'm going to have to order one of these after christmas. Can't wait, and great Instructable.
awesome idea! it's kinda like the digg counter, but if you had this in your house, you could know when people visit your blog.
looks difficult. great instructable!
Hi GorillazMiko, it is not as difficult as it may look. It is definitely easier than programming microcontrollers directly. Arduino is a great way to get involved with micros. Cheers, Alex
Thats great! Nice job!

About This Instructable


145 favorites


More by alex_weber: 64pixels Arduino XMAS hitcounter Synchronizing Fireflies
Add instructable to: