anniethebruce: (Default)
2019-03-04 08:00 pm

Need more parts

So years ago I had an idea to make a synthesizer using 555 timer ICs as the oscillator.

Now, with an Arduino, this should be much easier.

I've got two main possibilities to control it- a resistor/capacitor network which I activate/deactivate parts of as needed, or a digital potentiometer.

I think the latter is the only viable way. Otherwise I'm looking at needing something like 40 resistors and that would be a nightmare to wire up.

Will do more research on this and hopefully come up with a good design by the time I'm ready to order the parts.
anniethebruce: (Default)
2019-02-28 03:46 pm
Entry tags:

Arduino sensors I ordered arrived today.

Some of these sensors are poorly explained. For example, what does an "Avoid" sensor do? Or a Heartbrat?

I have a sheet with pictures of each, with the name in English and Chinese. This is it. I might want, I don't know part data sheets? Part numbers? haha nope. Big Sound and Small Sound are presumably related to sensing sound, and the big one is indeed bigger than the small. What sort of capability difference do they have? No idea.

I guess skimping on documentation was a big part of why this kit with 37 sensors was affordable.

Working with these things might be interesting.
anniethebruce: (Default)
2019-02-27 02:41 pm

Arduino "Dice" roller

So I'm working on building a dice roller thing with Arduino. Technically, it won't roll dice, though I suppose I could work on something that does. But it will have the same effect.

The idea will be to select die size and count, press a button, and then it will generate an appropriate random number.

Some design notes follow.

Basic UI:
Die Size Selector: Two buttons, to scroll up and down through various die sizes from D4 through D100. In the initial version, at least, it will only support those die sizes used in Dungeons and
Dragons 5th Edition. Seven Segment displays will be used to display this information.

Die Count Selector: Same hardware setup. This will be the number of "dice" to roll. Selectable quantities will range from 1-99.

The seven segment displays will be two digits- ideally, actual two digit units but if I can't source those at reasonable cost I'll resort to paired single digit parts. Driven by a shift register to ensure output pin requirements can be satisfied with an Arduino Uno.


Die Roller: A single button to roll dice as specified in the above, displayed on a 4 digit 7 segment display, again driven by a shift register to keep pin usage within the Unos capabilities.

Unanswered questions:
Can 2 digit displays be sourced at a reasonable cost? I've got a thought to try to sell these things if they function well, and very small differences might be critical in whether or not I can make that work. Buying a couple for prototyping is nothing, but for production it might matter. But also worth considering in the paired single digit solution is the need for more shift registers.

Speaking of shift registers, do I chain them or run them independently? The former will mean the least demand on Arduino output pins, but, the latter will make it easier to keep code driving each display more thoroughly separated. Cost should be the same. Maybe a couple cents difference over multiple units for the extra wiring.
anniethebruce: (Default)
2019-02-25 04:05 pm

7 Segment display pricing

Scrolling through Amazon for 7 segment displays and wondering why some are so much cheaper than others. What am I sacrificing by cheaping out?

My guess is that I'll be sacrificing some brightness and/or longevity if anything at all. Given my current need is just for prototyping, this should be a reasonable tradeoff to save some money. If this project goes to a production version I sell, I can look at higher quality components. And I'd be buying on a larger scale which should keep my unit costs reasonable even then.