RunRyder RC
WATCH
 1 page 479 views POST REPLY
HomeOff Topics › Need code, LED sign, Ardunio
01-02-2018 08:05 AM  9 months agoPost 1
Girard Ibanez

rrVeteran

Tucson, Arizona (formally from Guam)

My Posts: All  Forum  Topic

Looking for someone to assist in code writing or even better write the code.

I am building an LED sign and using an Ardunio as a programmer to program a ATTiny 85 chip.

I will be driving the LEDs with a 12v power source.

What I need is a code that will make the LEDs flash 2 times rapidly then stay on for 2 seconds and repeat the sequence. The timing rate should be variable so that i can change the on or off duration.

Similar in design as a brake light flasher.

The Ardunio starter kit has project for blinking the LEDs but nothing on what I am thinking.

Any assistance will be Greatly Appreciated.

Happy New Year!!!


Team Thunder Tiger
since 6/2005 to 12/2014

PM  EMAIL  HOMEPAGE  GALLERY  Attn:RR  Quote
01-02-2018 12:47 PM  9 months agoPost 2
Dan Minick

rrKey Veteran

Columbus, WI

My Posts: All  Forum  Topic

I would start with the blink sketch and add from there, possibly even duplicate it and just use different blink lengths. I found that YouTube is a great resource for finding code. It may not all be there in one piece but you can piece it together. I am just getting started doing simple programs myself or I would offer more help

Team Synergy, Team FBL Rotors-------if its not broke...it will be!

PM  EMAIL  GALLERY  Attn:RR  Quote
01-02-2018 03:49 PM  9 months agoPost 3
GyroFreak

rrProfessor

Orlando Florida ...28N 81W

My Posts: All  Forum  Topic

I would be glad to code a chip for you in GCB, but using a PIC12F1840 which should be pin compatible with your chip. But making the variable rate would require adding some variable resistors (Or learning compiled GCB and changing the code yourself, but that requires a $30 programing adapter). Probably not compatible with what you are trying to accomplish.

I think about the hereafter. I go somewhere to get something, then wonder what I'm here after ?

PM  EMAIL  GALLERY  Attn:RR  Quote
01-03-2018 08:10 AM  9 months agoPost 4
Girard Ibanez

rrVeteran

Tucson, Arizona (formally from Guam)

My Posts: All  Forum  Topic

GyroFreak, Thanks for the assist. I was interested in the code writing and altering it as a learning tool.

Years ago, 80s, I played with similar led blinking codes but had difficult time altering it for various on off rates. I gave up on pic programing.

Recently got my hands on an Ardunio (free) and the thought of programing a pic (Attiny) on this led sign came to mind.

My original idea before the Ardunio thought was to purchase a brake flasher ($3) and then design a 555 timer to trigger the brake flasher cycle. The brake flasher strobed 3 times and then stay lit. Only way to repeat the cycle was is to trigger a low signal. Hence the 555 timer.

I can minimize the hardware by programing a pic.


Team Thunder Tiger
since 6/2005 to 12/2014

PM  EMAIL  HOMEPAGE  GALLERY  Attn:RR  Quote
01-03-2018 08:12 AM  9 months agoPost 5
Girard Ibanez

rrVeteran

Tucson, Arizona (formally from Guam)

My Posts: All  Forum  Topic

Dan, Thanks ... I will try that once I download the Ardunio software.


Team Thunder Tiger
since 6/2005 to 12/2014

PM  EMAIL  HOMEPAGE  GALLERY  Attn:RR  Quote
01-03-2018 08:37 PM  9 months agoPost 6
nitro fun

rrApprentice

Oc ca

My Posts: All  Forum  Topic

I think it would be a lot of code to try and make that fully adjustable...

I would write different combination of time delays in sub routines, then just goto to the time delay you want to use,
You can cycle through it easy with a button , high or low...
Everytime the button is pushed the 1 is added to a variable to chose the corresponding delay routine...

PM  EMAIL  GALLERY  Attn:RR  Quote
01-04-2018 02:11 AM  9 months agoPost 7
okw14

rrApprentice

Morgantown, WV

My Posts: All  Forum  Topic

I think it would be a lot of code to try and make that fully adjustable...

I would write different combination of time delays in sub routines, then just goto to the time delay you want to use,
You can cycle through it easy with a button , high or low...
Everytime the button is pushed the 1 is added to a variable to chose the corresponding delay routine...
That could just as easily be written to increase or decrease the timers by a preset amount with each press of the button, without having a fixed set of delays hard coded into the program. Simply increase timer1 by 0.1 second (or 0.5 seconds, or 1 second, etc.) with every press.

Alternatively, you could connect a pot to an input and adjust the time delays with the pot.


---
This Jeep is not an SUV. Your SUV is not a Jeep.

PM  EMAIL  GALLERY  Attn:RR  Quote
WATCH
 1 page 479 views POST REPLY
HomeOff Topics › Need code, LED sign, Ardunio
01-04-2018 03:05 AM  9 months ago •• Post 8 ••
Girard Ibanez

rrVeteran

Tucson, Arizona (formally from Guam)

My Posts: All  Forum  Topic

Thanks for the suggestions. I've been YouTubing Tutorials on Arduino syntax. Now to see if this Surface Pro will meet the software requirements so I can get to playing.


Team Thunder Tiger
since 6/2005 to 12/2014

PM  EMAIL  HOMEPAGE  GALLERY  Attn:RR  Quote
WATCH
 1 page 479 views POST REPLY
HomeOff Topics › Need code, LED sign, Ardunio
 Print TOPIC  Make Suggestion 

 3  Topic Subscribe

Tuesday, October 23 - 9:55 pm - Copyright © 2000-2018 RunRyder   EMAILEnable Cookies

The RC discussion world needs to consolidate. RR is now one choice for that. Its software is cutting edge. It hosts on-topic advertising. Help RR increase traffic buy making suggestions, posting in RR's new areas (sites) and by spreading the word.

The RunRyder Difference

• Category system to allow Rep/Vendor postings.
• Classifieds with sold (hidden) category.
• Classifieds with separate view new.
• Answer PMs offsite via email reply.
• Member gallery photos with advanced scripting.
• Gallery photo viewer integrated into postings.
• Highly refined search with advanced back end.
• Hosts its own high end fast response servers.
• Hosts thousands of HD event coverage videos.
• Rewrote entire code base with latest technology.
• No off-topic (annoying) click bait advertising.
Login Here
 New Subscriptions 
 Buddies Online