Quantcast
Trying to learn Arduino - Page 2 - Beyond.ca - Car Forums
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 21 to 40 of 47

Thread: Trying to learn Arduino

  1. #21
    Join Date
    Dec 2006
    Location
    Calgary
    My Ride
    Lease
    Posts
    3,251
    Rep Power
    42

    Default

    How come you got 2 boards going on at same time?

    Just taking a break from lesson 6, eight led with 74HC595. My head hurts

  2. #22
    Thaco's Avatar
    Thaco is offline sucks off little boys (ya, don't fuck with rage2 bitch!!!)
    Join Date
    Oct 2004
    Location
    Calgary
    My Ride
    Rage2
    Posts
    3,868
    Rep Power
    29

    Default

    Originally posted by TomcoPDR
    How come you got 2 boards going on at same time?

    Just taking a break from lesson 6, eight led with 74HC595. My head hurts
    one is running the led string and one is running the matrx, i could probably run them both from one but i haven't gotten that far yet
    User title molested by Rage2.

    Quote Originally Posted by rage2 View Post
    This quote is hidden because you are ignoring this member. Show Quote
    It's not the size that matters, it's the taste it leaves in your mouth.

    Quote Originally Posted by JRSC00LUDE
    This quote is hidden because you are ignoring this member. Show Quote
    I say stupid shit all the time.
    ^^ Fact Checked


    Quote Originally Posted by Misterman View Post
    This quote is hidden because you are ignoring this member. Show Quote
    No logic, thought, input, etc from cult member...

  3. #23
    Join Date
    Dec 2006
    Location
    Calgary
    My Ride
    Lease
    Posts
    3,251
    Rep Power
    42

    Default

    Originally posted by Thaco
    one is running the led string and one is running the matrx, i could probably run them both from one but i haven't gotten that far yet
    That's what I was discussing with spikerS as his arrived today too. It feels to me, one uno/board is meant to do one or one really complex code only. Anything more you'll need multi boards

  4. #24
    Join Date
    Mar 2010
    Location
    Calgary
    My Ride
    Ioniq 5
    Posts
    1,810
    Rep Power
    46

    Default

    Originally posted by TomcoPDR


    That's what I was discussing with spikerS as his arrived today too. It feels to me, one uno/board is meant to do one or one really complex code only. Anything more you'll need multi boards
    Not at all, its just a matter of setting up the I/O correctly and structuring your program slightly differently. A lot of beginner programs use delay by X ms to make things work at a certain speed, instead of doing that you can shift everything into a sub function and just call that function every X ms and do other stuff in the mean time to multi-task.

    For example on my LED glasses projects I'm running two separate WS2812 LED strings that each have 36 LEDs in them (72 total) off two different data pins. Then I also have routines to monitor push button inputs and accelerator inputs and adjust things accordingly.

    Instead of running one big LED function that loops I broke it into sections.

    - Scan button inputs
    - Scan accelerometer inputs
    - Make changes to pattern arrays based on inputs
    - Shift colour arrays
    - Output to LED string 1
    - Output to LED string 2

    Originally I'd update LEDs, wait 50ms, then shift, then update again, but now I basically constantly scan the first 4 parts and then every 50ms I call the update routines to push whatever is current to the LEDs.
    Last edited by pheoxs; 03-10-2017 at 06:56 PM.

  5. #25
    Join Date
    Jul 2005
    Location
    Calgary
    My Ride
    Integra Type R
    Posts
    171
    Rep Power
    0

    Default

    is the Elegoo kit better than the official arduino kit? ($30 more)
    wh...?

  6. #26
    Join Date
    Dec 2006
    Location
    Calgary
    My Ride
    Lease
    Posts
    3,251
    Rep Power
    42

    Default

    Originally posted by pheoxs


    Not at all, its just a matter of setting up the I/O correctly and structuring your program slightly differently. A lot of beginner programs use delay by X ms to make things work at a certain speed, instead of doing that you can shift everything into a sub function and just call that function every X ms and do other stuff in the mean time to multi-task.

    For example on my LED glasses projects I'm running two separate WS2812 LED strings that each have 36 LEDs in them (72 total) off two different data pins. Then I also have routines to monitor push button inputs and accelerator inputs and adjust things accordingly.

    Instead of running one big LED function that loops I broke it into sections.

    - Scan button inputs
    - Scan accelerometer inputs
    - Make changes to pattern arrays based on inputs
    - Shift colour arrays
    - Output to LED string 1
    - Output to LED string 2

    Originally I'd update LEDs, wait 50ms, then shift, then update again, but now I basically constantly scan the first 4 parts and then every 50ms I call the update routines to push whatever is current to the LEDs.
    Oh man very nice. Finally understanding the shift register 74HC595. (Pins are numbered left side of the U groove, counting in a u shape back up to 16). The stupid data clock latch diagram messed up my thought process.


    Originally posted by jav_
    is the Elegoo kit better than the official arduino kit? ($30 more)
    That what I was starting this thread for. I don't have an answer for u. As i only have Elegoo kit at this point. For my level, it's fun and isn't gonna be too painful if I fry the board.

    I say try the spikerS $50 Elegoo first. Master the basic lessons... and just consider the $50-75 as tuition. Then start buying the actual stuff you want your final project for.

  7. #27
    Join Date
    Oct 2006
    Location
    Parked in Baygirl's garage.
    My Ride
    '21 F150 PowerBoost
    Posts
    4,592
    Rep Power
    29

    Default



    Yeah, I would say just get the $50 kit I got from Amazon here:
    https://www.amazon.ca/gp/product/B01...?ie=UTF8&psc=1

    Has most of the major add on parts, and teaches you how to program each one.

    and for the most part, all these boards all use the same standardized components that are available off the shelf, so, if you buy a real arduino, all you are doing is supporting them and thanking them for making the standard. Otherwise, they are all pretty much the same as far as I can tell.
    Boosted life tip #329
    Girlfriends cost money
    Turbos cost money
    Both make whining noises
    Make the smart choice.

    Originally posted by Mibz
    Always a fucking awful experience seeing spikers. Extra awful when he laps me.

  8. #28
    Join Date
    Apr 2008
    Location
    Calgary
    Posts
    179
    Rep Power
    0

    Default

    A single arduino is more than enough power for 99% of projects people might envision. The thing is that it's executing ~16 MIPS. So roughly 16 million instructions per second. Only limiting factor is that it's 8bits and doesn't do native floating point math. I would say if you ever find yourself using two arduino's to do something you picked the wrong platform...
    Last edited by mazdavirgin; 03-11-2017 at 12:12 AM.

  9. #29
    Join Date
    Mar 2010
    Location
    Calgary
    My Ride
    Ioniq 5
    Posts
    1,810
    Rep Power
    46

    Default

    I switched from a arduino pro mini to a arduino trinket and spent 3 hours troubleshooting hardware ghosts trying to figure out why my new design wouldn't work only to learn my codes too big and overloading the sram and crashes the arduino. Sigh. Either gotta strip stuff out or readjust my model to fit a bigger board

  10. #30
    Join Date
    Dec 2006
    Location
    Calgary
    My Ride
    Lease
    Posts
    3,251
    Rep Power
    42

    Default

    That's enough learning for the night Night Beyond.


  11. #31
    Join Date
    May 2006
    Location
    calgary ab
    My Ride
    4x4
    Posts
    2,398
    Rep Power
    24

    Default

    You can do a fair bit with a 328 based Arduino, but sometimes it's hard to make the code fit.

    But once you get there - you can always eyeball pjrc's teensie controllers - can still program from Arduino IDE, and the 3.5 brought back 5v tollerance.

    Spend time learning I²C depending what 16x2 LCD that is - you can probably drive it with 2 wires...

  12. #32
    Join Date
    Jan 2004
    Location
    Calgarian Living in Edmonton
    My Ride
    93 240sx SE, 17 Infiniti Q50S, 2008 Highlander
    Posts
    6,693
    Rep Power
    35

    Default

    I have no clue WTF ya'll are talking about in here, but I just came here cause blindsight deleted all his posts
    Last edited by dj_rice; 03-11-2017 at 10:15 AM.
    Originally posted by GTS Jeff
    You know those bored stay at home moms who's entire lives revolve around driving their kids to soccer, various cleaning accessories, and worrying about neighbourhood rapists? The kind of people that watch the View and go "uh huh..." Those unfulfilled people who try to fill the void in their empty lives by writing whiny letters to the editor complaining about shit that no one really cares about?

    Well imagine if instead of writing that letter to the editor, she just posts on a car forum for car enthusiasts. That's Kritafo.

  13. #33
    Thaco's Avatar
    Thaco is offline sucks off little boys (ya, don't fuck with rage2 bitch!!!)
    Join Date
    Oct 2004
    Location
    Calgary
    My Ride
    Rage2
    Posts
    3,868
    Rep Power
    29

    Default

    Originally posted by dj_rice
    I have no clue WTF ya'll are talking about in here, but I just came here cause blindsight deleted all his posts
    User title molested by Rage2.

    Quote Originally Posted by rage2 View Post
    This quote is hidden because you are ignoring this member. Show Quote
    It's not the size that matters, it's the taste it leaves in your mouth.

    Quote Originally Posted by JRSC00LUDE
    This quote is hidden because you are ignoring this member. Show Quote
    I say stupid shit all the time.
    ^^ Fact Checked


    Quote Originally Posted by Misterman View Post
    This quote is hidden because you are ignoring this member. Show Quote
    No logic, thought, input, etc from cult member...

  14. #34
    Join Date
    Mar 2010
    Location
    Calgary
    My Ride
    Ioniq 5
    Posts
    1,810
    Rep Power
    46

    Default

    This is what I'm in the mindst of building / using my arduino for. 88 addressable LEDs. Trying to make it into a product to sell in a few months hopefully but learning 3d modelling to 3d print the frames is slow AF. And need to make new LED boards to make my life easier so I'm not soldering as much shit.

    https://www.youtube.com/watch?v=Ly5LAtI0bDc

    (The Arduino is built into the glasses, using a micro sized trinket. Not the bulky Uno.)
    Last edited by pheoxs; 03-11-2017 at 12:39 PM.

  15. #35
    Join Date
    Oct 2006
    Location
    Parked in Baygirl's garage.
    My Ride
    '21 F150 PowerBoost
    Posts
    4,592
    Rep Power
    29

    Default

    I think my first project is going to be an indoor grow setup. (not that kind of grow...sheesh).

    I love tomatos, so with our short growing season, I thought I could try to make a self-sustaining indoor greenhouse. something with a LED lighting (not sure if regular old LED strip lights will provide the right type of light or not), a soil moisture monitor, a watering pump, timer, temperature monitoring and heating and cooling.

    I know there are some basic kits out there that have some of that stuff already done, but I want to try building that from scratch.

    my 2 biggest hurdles so far that I haven't figured out yet, is if LED strip lights will work, and how to generate heat if needed.
    Boosted life tip #329
    Girlfriends cost money
    Turbos cost money
    Both make whining noises
    Make the smart choice.

    Originally posted by Mibz
    Always a fucking awful experience seeing spikers. Extra awful when he laps me.

  16. #36
    Join Date
    Dec 2006
    Location
    Calgary
    My Ride
    Lease
    Posts
    3,251
    Rep Power
    42

    Default

    Originally posted by dj_rice
    I have no clue WTF ya'll are talking about in here, but I just came here cause blindsight deleted all his posts
    It's just a DIY learning kit for us wannabe robot makers. Don't worry, you're first in line once I can successfully create a fully functional sexbot.

  17. #37
    Join Date
    May 2002
    Location
    Calgary
    My Ride
    6.7 CUMMINS, E50 AMG
    Posts
    4,820
    Rep Power
    27

    Default

    Could use an ssr or relay to switch a small electric space heater? A little 250w forced air heater would work (depending on space size of course) and should be cheap to use.

    Or a little recirc unit that can draw ambient indoor air from somewhere warmer in the house? Set it up with a couple modulating actuators and forget. Belimos have position feedback and end switches, 2-10vdc, 0-20mA control
    Machining, Fabricating, Welding etc.

  18. #38
    Join Date
    Mar 2010
    Location
    Calgary
    My Ride
    Ioniq 5
    Posts
    1,810
    Rep Power
    46

    Default

    Originally posted by spikerS
    I think my first project is going to be an indoor grow setup. (not that kind of grow...sheesh).

    I love tomatos, so with our short growing season, I thought I could try to make a self-sustaining indoor greenhouse. something with a LED lighting (not sure if regular old LED strip lights will provide the right type of light or not), a soil moisture monitor, a watering pump, timer, temperature monitoring and heating and cooling.

    I know there are some basic kits out there that have some of that stuff already done, but I want to try building that from scratch.

    my 2 biggest hurdles so far that I haven't figured out yet, is if LED strip lights will work, and how to generate heat if needed.
    Assuming it's the same as a grow up, if so they make specialized led lights that have wider light spectrums and more focused lenses made specifically for growing things

  19. #39
    Join Date
    Apr 2008
    Location
    Calgary
    Posts
    179
    Rep Power
    0

    Default

    Originally posted by spikerS
    I love tomatos, so with our short growing season, I thought I could try to make a self-sustaining indoor greenhouse. something with a LED lighting (not sure if regular old LED strip lights will provide the right type of light or not), a soil moisture monitor, a watering pump, timer, temperature monitoring and heating and cooling.
    You're going to need a grow lamp and not an LED. The LED doesn't hve the required light spectrum for growing. Something like this would work: https://www.homedepot.ca/en/home/p.6...000139130.html

    Heat lamps and fans for passive cooling would probably be your best bet. Active cooling is a whole different ball game both electrically and cost wise.

  20. #40
    Join Date
    May 2006
    Location
    calgary ab
    My Ride
    4x4
    Posts
    2,398
    Rep Power
    24

    Default

    tomato growing...

    You don't want full spectrum, you want red. Red is what's photosynthesized, blue is also kinda used - but to provide directionality not actual photosynthesis. But if you're trying to thicken the plant up - some blues to the side - might encourage outward growth... gotta be well planned out though, because you'll just make that plant stretch, not necessarily in a supportable way.

    But if you used a support trellis, tied back / up - you could supplement with red to push growth.

    PCA9685, is often used - 16 channels of i2c PWM dimming goodness, you might want to ramp up/down brightness - some plants aren't fond of a immediate *boom* daylight *boom* night scenario you get from timers. It's in a PITA TSSOP package, but breakout boards can be found - hows your surface mount soldering skills? if they suck like mine - you can find a funky TSSOP to DIP converter on alibaba and others...

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. Arduino, Picaxe and Local PCB printers?

    By Unknown303 in forum Computers, Consoles, and other Electronics
    Replies: 4
    Latest Threads: 11-02-2013, 12:44 AM
  2. Trying To Learn Guitar

    By em2ab in forum Entertainment
    Replies: 11
    Latest Threads: 07-19-2008, 05:56 PM
  3. How you learn about cars?

    By Stratus_Power in forum General Car/Bike Talk
    Replies: 12
    Latest Threads: 10-07-2002, 11:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •