Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 95
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
RateReducer (35)


Next birthdays
11/02 Download (31)
11/02 ScottH (37)
11/03 Electroguy (94)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Chatting
« Previous topic | Next topic »   

project dilemma. which colorful thingy to persue 1st?!

Move Thread LAN_403
wylie
Fri Jun 04 2010, 07:00AM Print
wylie Registered Member #882 Joined: Sat Jul 07 2007, 04:32AM
Location:
Posts: 103
I got the STM32 ARM stamp-module that Bjorn suggested to me a month ago. It's great; It's like having a PC who's sole purpose is interfacing with hobby projects, and doesn't require hundreds of watts to run. wink ST's firmware library seems really good, once you combine the reference manual with the example code they supply (it's a bit tough to understand unless you combine the two.) Though, I've only used 2 of the peripheral libraries so far, and that opinion might change once i start using the inputs and ADC/DAC. And of course, i spent at least 4 days trying to get my interrupts to work the 1st time..... I was using one of ST project examples to start from, and completely forgot about the OTHER .c file (aside from main.c) that was included in the build which contained the interrupt routines. Sure enough, once i stuffed my junk into that file, it worked.

Getting to the point of the thread...I've got two projects that i want to do RIGHT NOW, but can't decide which. I don't have the board space to do both.

1. an acrylic sign-holder, with an engraving, illuminated by r/g/b LEDs (r/g/b being separate "bulbs", as opposed to real RGB LEDs.) Basically, a desk ornament. I've got the program doing a test pattern of RYGCBM-andbackagain, plus it stops on white. I want to work out a smooth-fade-around-the-spectrum routine as well, and then add a button or two for an interface to select modes. BUT, I have no idea how I'm going to make it a stand-alone unit (ie: with its own uC, as opposed to running off the stamp.) and I also have no idea what i even want to engrave on the plastic. So, to keep working on this one, i just need to buy/salvage some buttons, figure out a way to get a 64pin lqfp onto the ornament, and then program the full-spectrum-routine plus some button interface, and BAM, i've got a sexy desk ornament. Oh, and deciding on an image for the engraving wouldn't hurt either wink

2. A matrix display. I've already wired up all the indicator LEDs I had in my box into a 4x8 matrix. One row green, two yellow, and one red. So what better to do with that than some sort of sound-level display for audio? Has most of the same barriers-to-completion as the acrylic display; like how to work that mega-pin SMD chip into the construction for the final build, and some button action. Also need to figure out the ADC.

I wired up the whole matrix before i realized i didn't have enough breadboard space to hook it up to the stamp, unless i pull up the r/g/b setup for the acrylic display. Yeah, i could put that stuff back some day....but should i just finish my program for the r/g/b thing before moving onto another project? I mean, if i get the program done, then i don't really need that project on the breadboard anymore. Until I work on the final build at least...gotta buy a toaster oven and rework it for reflow work, that's how i can easily incorporate those hentai-esque 64pin ARM chips wink

So, i can't really completely-finish either till i Get Ma' Reflow On. I think I'll learn more from #2, which could even make #1 easier to work on later.

Opinions?
Back to top
Conundrum
Fri Jun 04 2010, 08:57PM
Conundrum Registered Member #96 Joined: Thu Feb 09 2006, 05:37PM
Location: CI, Earth
Posts: 4061
get another protoboard? :)

btw i came up with some code to do that, based on a tapped shift register preloaded with a PWM fade waveform.
each output feeds one of the LEDs resulting in a smooth fade-around.
Back to top
wylie
Sat Jun 05 2010, 04:41AM
wylie Registered Member #882 Joined: Sat Jul 07 2007, 04:32AM
Location:
Posts: 103
Damn, Conundrum! "Option 3" hadn't even occurred to me. Off to the shop...er, site. I was going to order a buttload of LEDs this week anyway smile

My color shifting code is already based on the pwm method. The program uses a triplet of PWM values (0 - 999) to control each color channel. I've used it to tune the relative brightness, since it's easier than swapping-out-resistors-till-the-day-i-die. I can't calculate it due to buying some unspecififed LEDs for that project. They were reasonably priced, and the color and brightness are good....but i got no way of finding a datasheet. Without that, it's all trial-n-error to get the max brightness without burning out the LEDs. I just haven't taken the time to work out how the program fades from one set of values to the next, but I'm sure i can figure it out. If i can't, there's always google wink

Anyway, back to the rgb project till my additional boarding arrives. Thanks for helping me think this through....i can't get any of my friends or family to stay non-comatose long enough to discuss my projects with them. OH, they like the results, but talking about it for more than 2mins just isn't possible. Add to that the fact that it takes me half-to-a-whole hour to explain what I'm trying to do....yeah, just better to ask the board.
Back to top
Bjørn
Sat Jun 05 2010, 04:49AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Go for the project with the ADC so you can do some proper data processing.

I have figured out the ADC, DAC and most importantly the DMA controller if you need any help with that. At the moment I am not using the firmware library. The early versions had some problems that made it pretty frustrating to use.

So instead I made some useful functions like configuring the I/O pins with a simple command like configPortA("---- ---- oooo oooo"); instead of a whole page of code (set PA0-PA7 to output, no change on PA8-PA15).
Back to top
Hazmatt_(The Underdog)
Sat Jun 05 2010, 03:53PM
Hazmatt_(The Underdog) Registered Member #135 Joined: Sat Feb 11 2006, 12:06AM
Location: Anywhere is fine
Posts: 1735
If you're going to be making signs and have the led's matrixed anyway, use the ADC and make a 10 band low frequency spectrum analyzer with a FFT.

Test equipment is always useful to have around even if you don't need it right away.
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.