element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Need coding help.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 16 replies
  • Subscribers 400 subscribers
  • Views 1094 views
  • Users 0 members are here
  • arduino
Related

Need coding help.

Former Member
Former Member over 10 years ago

So I have never coded anything before in my life and I found this community from the jeremy blum youtube videos.

 

I am building a vivarium (snake cage) and would like to fully automate the temperature and humidity for it and be able to monitor and adjust the temp and humidity wirelessly over my home network. I have done a lot of research on my own and think I have all of the right parts I just need help with the coding and one small wiring connection. I will list as many details as possible below and I would love if someone here would be able to help and teach me!

 

PARTS LIST: Arduino uno r3, AM2302 (wired DHT22) temperature-humidity sensor, adafruit cc3000 WiFi shield with onboard ceramic antenna, Sain smart 4 channel solid state relay (load: 2A, 240VAC, 50/60Hz), Humidifier runs on 30 watts 120V, Ceramic heat lamp 100 watts, shield stacking headers for arduino r3, breadboard, wires, and resistors.

 

What I would like is the sensor to be in the cage (hence the AM2302 not just the DHT22) and the rest of the components outside. I would have the parameters set (Ex: 83 *F and 85% RH) and any time the actual temperature or humidity fell below those values the ceramic heat lamp and/or humidifier would turn on until those values have been reached and then they would turn off. Finally (and not a fully necessary requirement) have the data wirelessly sent to my computer over my home network so I can see actual temperature and humidity at that time and change it if so desired and a graph of temperature/humidity over time. This part is not needed I just would like it if it is possible to do.

 

As stated I have no experience in coding but I am handy with electronics and quick to learn. I do not know how difficult something like this is I just know it is way over my head.

 

If there is any information missing or any questions feel free to ask!!

 

Thank you in advance!

  • Sign in to reply
  • Cancel

Top Replies

  • fvan
    fvan over 10 years ago +2
    Hi, that's a challenging project you're taking on Perhaps it would be good to experiment with more basic things first, like the temperature sensor only, and gradually build coding knowledge. The Arduino…
  • markvenn
    markvenn over 10 years ago +2
    Hi I have to agree with Frederick on this, start small and build on this small start. As you work through one bit at a time you will very quickly build up your knowledge and you will find that you won…
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +1
    This may help, a video I produced a while ago DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station) also Driving BIG loads with your micro controller…
  • fvan
    0 fvan over 10 years ago

    Hi,

     

    that's a challenging project you're taking on image

     

    Perhaps it would be good to experiment with more basic things first, like the temperature sensor only, and gradually build coding knowledge.

    The Arduino IDE comes with a set of example sketches. Try going through those first, and see if you understand the code.

     

    Frederick

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago

    This may help, a video I produced a while ago

     

    DHT22 temperature and Humidity Sensor with Arduino Uno and Ethernet Card (ENC or WizNet) (Instant weather Station)

     

    also

     

    Driving BIG loads with your micro controller - no isolation

    Sense BIG things with your Launchpad or Arduino, OPTO Isolated inputs.

    Drive BIG things with added safety. OPTO Isolators

     

    and for programming start on arduino Fast Track to Arduino Programming

     

    Hope this helps

     

    Peter

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    So I have realized with further research and various replies and PM that this is more then just a simple code that I could walk through or figure out on my own. Are there any coders here that would be willing to be hired to do this project? If so please PM me and we can work out some details such as time lines and payments.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to Former Member

    We may have scared you a bit with the overwhelming feedback, this was not intended

     

    Most of what you want to do is not too difficult but will require a bit of learning on your part, If you pay someone to do this for you then you may as well go buy a ready made unit and where is the fun in that

     

    as the heater is inside the enclosure you would not want it to be at mains potential so probably a 12 or 24V heater, this is easy to control using a relay or one of the circuits I showed above

    the humidifier will probably be similar in that the main unit will be low voltage (Powered by a wall wart) so again relatively easy to turn on/off

    to sense the temp and humidity, I have shown code above that uses a DHT22 sensor and an Arduino and is viewable from a smart phone or another browser

     

    so learning how to control each components in turn and then combining them into your desired product will be a good learning exersize and very rewarding

     

    If your willing, we can point you to the right path

     

    Regards

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • markvenn
    0 markvenn over 10 years ago

    Hi

    I have to agree with Frederick on this, start small and build on this small start. As you work through one bit at a time you will very quickly build up your knowledge and you will find that you won't want to stop with one vivarium. You will find more projects around that you will want to tackle. If you are happy with the electronics side of things already then you are half way there already!

    Mark

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 10 years ago in reply to Former Member

    Yes it's a big project, but it's not a difficult or a particularly scary project.

     

    There are lots of simple through to quite complex examples provided with the Arduino IDE, as well as Jeremy Blum's superb tutorials. Peter has already given you links to the wonderful stuff he has created and made available through this forum. Other people have posted lots and lots of things on this forum and all over the place on other blogs and forums. Google is your friend!

     

    Trust me, once you make start - all you need is 1 Arduino board, a USB cable and the IDE loaded and installed on you PC and you are away - the Arduino board includes an LED already connected to one of it's output pins and the simple sample sketch "Blink" makes it flash. You can start you coding by changing this sketch and making the LED blink in different ways.

     

    Go for it!

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kidiccurus
    0 kidiccurus over 10 years ago in reply to neilk

    My advice is too use Jeremy Blums numerous arduino tutorials and the reference section on arduino.cc to get started. The project would be relatively simple If it were not for the wi-fi requirement, so perhaps leave this out at first and then add it in later when you have a little more experience. If you have any code you want checking or need advice, feel free to post it on the forums. We will try our best to help you where we can.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ravi_butani
    0 ravi_butani over 10 years ago

    I ll be happy to help you and teach you... Please confirm list of components you have for this project once again with link of data sheet...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 10 years ago

    I hate to be 'that guy,' but:  If your snakes are waiting on this, my friend has snakes, they are quite sensitive to environmental params, you could get a pair of temperature controllers to manage your humidity and temperature and work on the uP solution at your leisure.  I got a controller for a hunny from ebay and a big SSR and put them into a cabinet.  I put a linear humidity probe at the end of a cable with a stereo jack.  I got the controller to interpret the sensor signum and scale as a temp sensor running form 0 to 100 C.   In a coupla hours I had my humidifier under PID control with DRO!

     

    POTS to the rescue!  IIRC it's a Canon XLR connector I have the humidity probe on.  I was able to take one apart and solder the sensor to a terminus so that I can use POTS XLR extension cords if need be.  Sure is fun to watch the numbers bobble!  SP is displayed as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • markvenn
    0 markvenn over 10 years ago in reply to D_Hersey

    Very good points here. If you are going to set up a system like this I suppose you should do a dry run to make sure all the bits work properly, dont want your scaly friends overheating. I know they are cold blooded and need warming but we don't want to overdo it. Let us know hoe you get on!

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube