Author Topic: Can Someone Make This Code  (Read 3092 times)

Offline Naython

  • Guppy
  • *
  • Posts: 5
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Can Someone Make This Code
« on: June 08, 2011, 07:10:29 AM »
I've been searching everywhere for a hex or asm for 12f683 pic with just a on off effect for led's in my controller
i have been using the ABXY Flasher but all i need is press the tactile all the leds are on press it again all the leds are off if anyone can do this it will be much appreciated

Offline Modded Matt

  • Site Owner
  • Administrator
  • Around the block
  • *
  • Posts: 4649
  • Post quality +65/-3
  • Gender: Male
Re: Can Someone Make This Code
« Reply #1 on: June 08, 2011, 09:21:44 AM »
U don't need a code. Wire them direct and use a latching push button to turn them on and off
« Last Edit: June 08, 2011, 09:22:33 AM by modded matt »

Offline Naython

  • Guppy
  • *
  • Posts: 5
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Can Someone Make This Code
« Reply #2 on: June 08, 2011, 11:38:12 AM »
since i've managed to get a small 7mm tactile switch oppersite the sync button a latching switch wont fit thats why i've been thinking about using a 12f683 to get the job done

Offline Modded Matt

  • Site Owner
  • Administrator
  • Around the block
  • *
  • Posts: 4649
  • Post quality +65/-3
  • Gender: Male
Re: Can Someone Make This Code
« Reply #3 on: June 08, 2011, 05:25:22 PM »
here is a circut that will work, very cheap.


if you want to do it with programming, the code you need is all over the net but not for the 12f683, which is WAY overkill for this action.

« Last Edit: June 08, 2011, 05:25:56 PM by modded matt »

Offline Naython

  • Guppy
  • *
  • Posts: 5
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Can Someone Make This Code
« Reply #4 on: June 09, 2011, 10:42:50 AM »
i've searched for the code but cant find it anywhere can you point me in the right direction
once done i plan on doing a tut on how to add an extra button oppersite the sync button

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: Can Someone Make This Code
« Reply #5 on: June 09, 2011, 11:17:41 AM »
ok ok ok I'll write the code!

so when you press the button it will toggle the state of four pins, correct?

Offline Naython

  • Guppy
  • *
  • Posts: 5
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Can Someone Make This Code
« Reply #6 on: June 09, 2011, 12:26:51 PM »
that could be great if you can

Offline kronosslayer

  • ½ Pint
  • *
  • Posts: 36
  • Post quality +6/-0
  • Gender: Male
  • Acidmods User
Re: Can Someone Make This Code
« Reply #7 on: June 23, 2011, 10:33:55 AM »
Hello Naython!

Wire your tactile button to Pin 2 with a 10k pull down resistor to ground.

Pins 3,5,6,7 will be your output for your LED's

If you need any other help feel free to contact me

Here's the schematic

Good Luck! :tup:
« Last Edit: June 23, 2011, 10:54:10 AM by kronosslayer »
I'm a java developer, Graphic Designer, and an a**hole.

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: Can Someone Make This Code
« Reply #8 on: June 23, 2011, 10:39:39 AM »
ah I forgot about this, sorry man looks like its sorted now anyway...

Offline Naython

  • Guppy
  • *
  • Posts: 5
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Can Someone Make This Code
« Reply #9 on: June 29, 2011, 05:47:44 AM »
Hi there
thank you for that sorry i haven't replied before just moved home and didn't have the internet
i'll be testing this code out as soon as i've sorted out my work room

Offline kronosslayer

  • ½ Pint
  • *
  • Posts: 36
  • Post quality +6/-0
  • Gender: Male
  • Acidmods User
Re: Can Someone Make This Code
« Reply #10 on: June 30, 2011, 08:24:12 AM »
Good Luck!! Let me know how the code works for ya  :#1:
I'm a java developer, Graphic Designer, and an a**hole.

Offline xSLICKVICx

  • King of the Wii-tards
  • *
  • Posts: 160
  • Post quality +0/-0
Re: Can Someone Make This Code
« Reply #11 on: August 04, 2011, 02:31:52 PM »
I Programmed this code to my IC and it didn't work for me. It either doesn't work or I have read the schematic wrong. Can someone verify the works?

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal