+ Reply to Thread
Page 1 of 2
1 2 Last
Results 1 to 15 of 24

Thread: Project using PIC16f and accelerometer

  1. #1
    nidhin1806 Newbie
    Join Date
    Dec 2009
    Posts
    7

    Project using PIC16f and accelerometer

    Hai everyone...
    I am really new to microcontroller programming etc. I recently took a course on PIC microcontrollers and was impressed by its wide potential. Also i was impressed by the wide application of accelerometer devices.
    I would like to do a project based on PIC16f microcontrollers that includes a accelerometer. So all you geniuses please help me by giving some cool ideas.
    Looking forward for some good responses...

    nidhin


  2. #2
    nidhin1806 Newbie
    Join Date
    Dec 2009
    Posts
    7

    pls help..

  3. #3
    breadboardguy Newbie
    Join Date
    Apr 2009
    Location
    montreal, Canada
    Posts
    129

    Why would we do the job for you? without being tough, its your project and you could at least post a complete schematic of your project...

    There are a lot of tutorials and datasheet on google, get to know what you are doing in details would be useful.

  4. #4
    DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent
    Join Date
    Aug 2003
    Location
    Toronto, Canada
    Posts
    1,241

    I think he wants an idea of what to make rather than how to make it.

    Maybe some type of balancing system, or alarm, or accel input for a user interface.
    Mark Higgins

  5. #5
    skyhawk Excellent skyhawk Excellent skyhawk Excellent skyhawk Excellent
    Join Date
    Feb 2007
    Location
    Morgantown, WV
    Posts
    192

    OK! How about a controller? The orientation of the controller relative to the gravitational field controls a virtual object in a PC.

  6. #6
    birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent
    Join Date
    Feb 2009
    Location
    Montreal, Quebec
    Posts
    1,061

    Hehe look at what I did :P

    A little project I made
    Mike
    My website: www.ElectroBird.net

  7. #7
    nidhin1806 Newbie
    Join Date
    Dec 2009
    Posts
    7

    Thanks DirtyLude and skyhawk... i liked a project i saw on net about a mouse using it.. it was quite good actually, but need some software and usb connectivity. i was thinking of some simpler and practically useful projects..

    thanks..

  8. #8
    nidhin1806 Newbie
    Join Date
    Dec 2009
    Posts
    7

    a project i liked

    MMA2260 Accelerometer Demo

    i would like to build something similar with a bit more usefulness...

  9. #9
    Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent
    Join Date
    Oct 2006
    Location
    Rochester, NY U.S.
    Posts
    9,650
    Blog Entries
    1

    skyhawk, just learn the protocol to communicate with a PS3 controller, they have full axis measurment abilities.
    "Because I be what I be. I would tell you what you want to know if I
    could, mum, but I be a cat, and no cat anywhere ever gave anyone a
    straight answer, har har."

  10. #10
    DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent
    Join Date
    Aug 2003
    Location
    Toronto, Canada
    Posts
    1,241

    Or a Bluetooth connection to a Wiimote.
    Mark Higgins

  11. #11
    nidhin1806 Newbie
    Join Date
    Dec 2009
    Posts
    7

    Idea

    My idea is to create a die (like the one used in playing board games). The number generated on the die is a random number between 1 and 6. The structure is made of a 3X3X3cm (max.) of transparent acrylic (maybe) or glass. Inside each face is attached a 7-segment display which are all connected together so that number displayed on each face is the same (unlike normal die). The number to be generated is decided by the program in the PIC. {I am thinking of using the randi() function which generates a random integer between two limits}. When the cube is held stationary it displays nothing on the faces (or maybe blinks). But when it is thrown and hits the ground, the accelerometer detects the impact and sends a signal to the microcontroller to start generating a number. The output of the microcontroller is connected to all the 7-segment displays.

    Please suggest a PIC which has at least 1 analog input and enough ports to connect & 7-segment displays, as using our 16f877 would not be practical and it would be bulky. Also please suggest a suitable accelerometer available here. I have learned to use ADXL32x with PIC. Would that be suitable for this project? Please say if this project can be done with our present knowledge of the subject. My main hurdles are to include the 7-segment display, accelerometer and the PIC in the small cube. Also I would have to supply power to the components through button cells. Is this possible?

    The use of this die can be made at casinos where unlike normal dice this cannot be tampered and generates a truly random number. Thus 'Loss Prevention' can be implemented.

    Please give your suggestions and ideas.

  12. #12
    skyhawk Excellent skyhawk Excellent skyhawk Excellent skyhawk Excellent
    Join Date
    Feb 2007
    Location
    Morgantown, WV
    Posts
    192

    Since all displays will read the same, all you need is 7 outputs. One analog input and 7 outputs can be handled by a chip such as a 16F676.

    http://ww1.microchip.com/downloads/e...Doc/40039E.pdf

    The microcontroller is available in surface mount packages to save space. Since the drive capability of the PIC is limited you may need a driver for the LEDs to get adequate brightness.

    It you use a 3-axis accelerometer you can know which face is up, and you could light only that face. In that case you would need 6 more pins to switch the displays. A 16F690 would be adequate in that case.

    http://ww1.microchip.com/downloads/e...Doc/41262E.pdf

    What are the smallest 7 segment displays that you have available. The displays that I'm familiar with are rather thick. Putting 6 of them in a cube that size won't leave much room for the other conponentsb
    Last edited by skyhawk; 3rd December 2009 at 10:33 PM.

  13. #13
    birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent birdman0_o Excellent
    Join Date
    Feb 2009
    Location
    Montreal, Quebec
    Posts
    1,061

    The battery life would be dreadful, unless it goes into sleep mode.
    Last edited by birdman0_o; 4th December 2009 at 12:42 AM.
    Mike
    My website: www.ElectroBird.net

  14. #14
    Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent
    Join Date
    Jul 2008
    Location
    Out there
    Posts
    1,753

    3-axis accelerometer requires 3 ADC inputs, not 1.
    Roman Black - PICs and electronics. Author of BTc PIC-sound encoder, Shift1-LCD project, the TalkBotBrain talking PIC controller, LiniStepper open-source microstepping motor driver, the Black Regulator 2-transistor SMPS, and probably some other stuff; www.RomanBlack.com

  15. #15
    DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent DirtyLude Excellent
    Join Date
    Aug 2003
    Location
    Toronto, Canada
    Posts
    1,241

    A nice 3 axis digital accel is the Freescale MMA7xxx series. I have a few MMA7456 chips here, but it looks like the are end of life'd. The new one looks like the MMA7660 for 1.5g 3 axis I2C. So two wire, no ADC required. If you can order from Mouser, it's just $2.36 in singles. That's pretty crazy considering what I paid a couple years ago for some ADXL accels.

    MMA7660FCR1 Freescale Semiconductor Board Mount Accelerometers

    EDIT: All of these chip packages are leadless, but since you are talking about an ADXL which is leadless, I'm assuming you wouldn't have any problems with this.
    Last edited by DirtyLude; 4th December 2009 at 02:55 AM.
    Mark Higgins

+ Reply to Thread
Page 1 of 2
1 2 Last

Similar Threads

  1. programing pic16f
    By bubsta82 in forum Micro Controllers
    Replies: 4
    Latest: 23rd July 2009, 09:09 PM
  2. Accelerometer and small transmitter project
    By tremmert in forum Electronic Projects Design/Ideas/Reviews
    Replies: 2
    Latest: 21st July 2009, 03:30 AM
  3. help with accelerometer project
    By tjennis in forum Electronic Projects Design/Ideas/Reviews
    Replies: 4
    Latest: 22nd December 2008, 09:30 AM
  4. Accelerometer project
    By kiowamec in forum Electronic Projects Design/Ideas/Reviews
    Replies: 9
    Latest: 8th October 2007, 01:48 AM
  5. Accelerometer Project
    By demestav in forum Micro Controllers
    Replies: 7
    Latest: 10th September 2006, 08:42 PM

Tags for this Thread