Displaying messages with only 7 (or 4) LEDs on a stick...


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    29


    Did you find this post helpful? Yes | No

    Default

    Hello Flotulopex,
    I did something like that for students school project. I did it very simple with a posicle stick and a little block of wood. I use 7 leds, a PIC16F627A and a CR2032 battery. The trick is to generate an interrupt at the beginning of the movement, for doing it I simply use a bolt soldered on a steel wire. The longuest part is to write character table. I have tu use PORTA cause I needed PORTB for the interrupt pin RB0 and the programming pins also. The bad thing is that RA5 can't be use as an output so I needed to use 5x7 matrix on PORTA without RA5. I splitted each character in 5 parts (lower case, higher case, numbers and french caracters also) and I did a routine that send them as needed. I'm not home at the moment and I don't have any schematic picture or code but I can post some parts of the code if you want.

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Cool!

    Thanks for all your infos.

    I get a better view of what I'll have to do now.

    Toley00, thank you for your offer about your code but... for now, I would like to make my own one (I don't like to spoil my fun) If I'm stuck, I'll ask you again.

    I was just really missing this info about finding the correct "display start point" for the beginning of the movement...
    Roger

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    If you don't want to make your own sensor, you might use one of the vibration sensor used in the alarm systems to sense glass breakage. They are adjustable so you can set the sensitivity.

    Ioannis

  4. #4
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Toley00 View Post
    The trick is to generate an interrupt at the beginning of the movement, for doing it I simply use a bolt soldered on a steel wire.
    Toley00: Could you explain how you did this? I'm having trouble visualizing how a bolt soldered on a wire helps. Cheers.

Similar Threads

  1. Code to control 4 LEDs and 2 servos
    By The Master in forum Off Topic
    Replies: 2
    Last Post: - 26th November 2008, 13:33
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  4. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22
  5. 7 segment digit problem (using Mister E's code)
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th September 2005, 20:25

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts