A+
|
|
# ¿ Nov 30, 2012 15:36 |
|
|
# ¿ Apr 28, 2024 05:05 |
I'm trying to use a teensy 3 with the fastspi library to drive some LED strips, but I'm not sure which pins on the teensy I should be using for the two signal lines (data and clock.) Possibly I'm just being daft, or not reading very well tonight, but so far, my goo-fu seems to be lacking. Anyone got any hints? http://www.pjrc.com/teensy/pinout.html http://code.google.com/p/fastspi/ e: Oh poo poo, I really am being daft. It's 19 for clock and 18 for data, isn't it?
|
|
# ¿ Dec 10, 2012 04:17 |
Yeah, I hopped on the teensy boat with the 2.0++, then somehow missed the 3.0 kickstarter, but bought a pinless one as soon as I found out they existed (because the pinned ones weren't in stock.) Finally got some header pins soldered on mine today, so far seems to be working great. The only thing that caught me off guard was that I spaced on it being USB micro rather than USB mini like its predecessors, so I had to wait a couple days on a cable from monoprice. Be advised, you'll want to go here for the latest teensy-compatible arduino dev environment, since it's still in beta at the moment: http://forum.pjrc.com/forums/6-Announcements e: I'm double-dumb tonight, it's those green pins on the pinout I want for my SPI stuff I think. I'm just having all kinds of brain farts tonight. ee: Ah HA! Got it. Pin 13 and pin 11. I don't know why that was so hard. :P Bad Munki fucked around with this message at 05:47 on Dec 10, 2012 |
|
# ¿ Dec 10, 2012 05:22 |
I use the arduino environment. The goal of the project is for it to be a drop-in replacement for the arduino, and run as an add-on to the arduino environment. It does pretty well at that, imho. Of course, as is true with an arduino, nothing's stopping you from hacking it up however you like, as long as you have the know-how.
|
|
# ¿ Dec 10, 2012 06:08 |
Yeah, just easing in and easing out your plain old waveform will do wonders for softening a tone. For a sort of "ding" sound ease in over, like, 1/10th of a second, and ease out using a log function for however long you want.
|
|
# ¿ Dec 13, 2012 22:00 |
Radioshack is all right in a pinch, and as long as you aren't in one that is JUST cell phones, they'll usually keep their parts bins fairly well stocked, but I find that their parts are generally 5-10 times more expensive than, say, digikey or mouser, even after you factor in shipping. I mean, a buck for a 5-pack of resistors? Really? The other stuff (shields and displays and PICs and kits and such) sounds a bit surprising, though. Could be that whoever runs that particular shop is into that stuff, I know they have a fair degree of freedom as to what they stock. Bad Munki fucked around with this message at 15:30 on Jan 30, 2013 |
|
# ¿ Jan 30, 2013 15:28 |
I think it really depends on whether it's a cell-phone radioshack or a "proper" radioshack. The shacks in Fairbanks AK, Des Moines IA (two of them there that I checked), and even the mall here in Erie PA all carry discrete components. As for the employees knowing anything about the stuff, yeah right, I mean, their job is to operate the cash register. Sometimes a manager will be able to help you find a part, but it's usually little more than "the parts drawers are over there." Which is all pretty understandable to me, really: brick and mortar stores really can't compete with these online shops like digikey and mouser that can offer a zillion individual parts at cut-rate bulk prices, it's just not feasible. So instead they have to offer a very limited selection, and mark the parts up enough to even make it worth the time it takes to stock them, and even then, they sell so little of it that most store managers probably just view it as wasted space.
|
|
# ¿ Jan 30, 2013 16:07 |
That sounds like an exceptional setup, that's pretty cool. And yeah, there's a lot to be said for being able to fondle a few parts and then walk off with them.
|
|
# ¿ Jan 30, 2013 16:55 |
Just for kicks, try putting single quotes around the url:code:
|
|
# ¿ Jan 31, 2013 04:18 |
Slanderer posted:The arduino libraries somehow manage to be both devoid of features and entirely unoptimized. (Also their I2C libraries will always be poo poo, forever). Their build process is totally hosed, too. And yet the package as a whole is incredibly accessible to even the greenest of experimenters. There's a ton of value in that.
|
|
# ¿ May 8, 2013 20:21 |
If you accept the Arduino as a sort of lowest-common-denominator solution, you'll find it's really not that aggravating at all.
|
|
# ¿ May 8, 2013 20:34 |
Because not bridging--or worse, widening--that gap promotes elitism on one side and disenchantment on the other?
|
|
# ¿ May 8, 2013 20:52 |
I bet the requirement was more along the lines of having to know EXACTLY where the code that was actually being executed was coming from and what it was. For example, with C, someone could alter the compiler to sneakily inject some nasty code to do nefarious things that the developer wasn't aware of.
|
|
# ¿ Sep 5, 2013 18:46 |
Why can't you drive both sets of LEDs from one arduino?
|
|
# ¿ Oct 14, 2013 15:19 |
I don't see how any of the leds would conflict with each other or even come close to maxing out the atmega. On a side note: fastspi lets you select arbitrary pins for software spi, and a mere 32 leds is waaaaaay under the max throughput for that, so even if your spi pins were to conflict with your i2c pins, you'd be able to adjust accordingly without issue. And if you find your audio analyzing is too heavy (I doubt it, but if), you could always switch to a teensy. It'll be smaller, cheaper, and faster, and is basically a drop-in replacement for arduino.
|
|
# ¿ Oct 14, 2013 19:15 |
Make your displays update based on the current millis() instead of serially in a loop. That is, you update the displays as fast as your arduino possibly can, but for the sin wave, for instance, you update it using millis() as the variable instead of some loop variable. If you want, you can put an if() a the beginning of your draw block that checks if, say, millis() ends in a 0 (thus updating every 10 millis at most.) e: Here's what I assume you're doing now: code:
code:
e: Here's a more concrete example using fastspi2. My loop() function looks like this: code:
code:
Bad Munki fucked around with this message at 22:09 on Oct 14, 2013 |
|
# ¿ Oct 14, 2013 21:30 |
I'd also point out that you can, in fact, use both methods, in case shoe-horning an animation into that scheme is too kludgey. The easiest way (maybe not the cleanest, but easiest) is to simply call your time-based animation function in between each step of your frame-based animation. Since the time-based animation doesn't care how many frames per second it's animating at in order to get a temporally-correct display, you can clamp it to the frames of your frame-based animation with minimal effort. So say I have two animations, one based on millis() and destined for Display1 and one based on a series of frames and destined for Display2: code:
As for doing something similar with two frame-based animations, I'd probably set up a proxy that uses millis() and updates the frame on each display based on that and a desired framerate.
|
|
# ¿ Oct 14, 2013 23:44 |
Delta-Wye posted:To get easy animation, you need a method of pegging your refresh rate to walltime, and the arduino provides the milli() function for just that. You can either use the milli() value directly as your frame index, or track elapsed time. That plan of attack in general works extremely well with fastspi2, it was basically designed and optimized with that sort of behavior in mind. Fastspi2 is hot.
|
|
# ¿ Oct 15, 2013 02:01 |
That looks pretty sweet.
|
|
# ¿ Oct 19, 2013 18:11 |
I bought a bag of these (not that exact auction or seller, but the same product, quantity, and price point): http://www.ebay.com/itm/10pcs-NRF24...=item5d4551b2f2 I haven't gotten around to trying them out yet, but there are some good libraries for them and they might do what you want. And the price is hard to beat, a 10-pack for (or so) is pretty drat cheap, so you can put them in whatever else you want, too.
|
|
# ¿ Dec 5, 2013 15:32 |
Yay China. Of course, it's also possible I bought a handful of non-functional lumps of silicon and plastic. Maybe some day I'll check.
|
|
# ¿ Dec 5, 2013 18:38 |
Yeah, that was exactly how it went for me, too. I was looking for something for a project I was mulling over, and thought, "Well, I'm nowhere near needing them, but some day I might, and it's only $12!" *click* And I came across a pretty featureful arduino library for that chipset, supported a number of different network designs including mesh. Depending on your platform, you shouldn't have too much trouble.
|
|
# ¿ Dec 5, 2013 19:46 |
Post a trip report when you get a satisfactory solution. I haven't run into it yet so I haven't even bothered to look, but I do have some projects in mind where SPI and I2C would be critical factors.
|
|
# ¿ Dec 21, 2013 01:31 |
ante posted:Big drill bits can definitely fit kibbles in the flutes.
|
|
# ¿ Jun 10, 2014 03:43 |
|
|
# ¿ Apr 28, 2024 05:05 |
https://www.arduino.cc/en/Tutorial/Debounce
|
|
# ¿ Sep 8, 2015 14:11 |