3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Automatic Tubular Bells

Step 5Firmware and software

The firmware has been developed in C, with the gcc compiler included in the free WinAVR development enviroment ( I used programmers notepad as IDE). If you take a look to the source code you will find different modules:
- atb: contains the "main" of the project and the system intialization routines. Is from "atb" where other modules are called.
- UARTparser: is the module with the code of the serial parser, which takes the notes sent by the computer through the RS-232 and converts them into commands understandable for the "movements" module .
- movements: converts a note command recived from UARTparser, to a set of different simple motor movements in order to strike a chime. It tells to the module "motor" the sequence of energy and direction of each motor.
- motors: implements 6 software PWM to power the motors with the precise energy and the precise duration set by the "movement" module.

The computer software is a simple Visual Basic 6.0 application which allows the user entering and storing the sequence of notes which compose a melody. It also allows sending the notes through the PC serial port and listening to them played by the Atb.

If you want to check out the firmware you can download it in the download area.
atb.zip12 KB
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
1
Author:Tolaemon