Reef Central Online Community

Go Back   Reef Central Online Community > General Interest Forums > Do It Yourself > The R3CA Project
Blogs FAQ Calendar Mark Forums Read

Notices

User Tag List

Reply
Thread Tools
Unread 11/25/2014, 11:36 PM   #1
cteagan
Registered Member
 
Join Date: Feb 2004
Location: San Antonio, Tx
Posts: 23
Need a simple Arduino Sketch for Lights

So today my Arduino Uno was delivered and tomorrow my DIY LED's will be delivered........I know nothing about programming or writing a sketch.

Does someone have a simple sketch they could send me or post to start as a baseline? I can figure out how to modify the start/stop times, pins for the output and stuff like that. I'd like to be able to get them running that then play around with the sketch to perfect it.

If anyone can help, that would be great.

Thanks


cteagan is offline   Reply With Quote
Unread 12/05/2014, 04:30 PM   #2
gbru316
Registered Member
 
Join Date: Jan 2012
Location: Lancaster,PA
Posts: 1,720
There are a lot of example sketches that come with the arduino IDE.

They are all explained here.

I don't think anyone is going to write a sketch for you because every sketch is application specific. We don't know your hardware or what you intent to do with it. Take the time to learn how to do it yourself, it's a worthwhile endeavor.

Also, without something to keep time, you won't be able to turn the lights on and off at specific times. You'll need a real time clock to do that as the arduino doesn't feature a traditional clock. Using "delay" or "millis" is not a good choice here. The ds1307 is pretty easy to implement and pretty cheap, to boot.


gbru316 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 11:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2024 Axivo Inc.
Use of this web site is subject to the terms and conditions described in the user agreement.
Reef CentralTM Reef Central, LLC. Copyright ©1999-2022
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.