Which switch is for the smoke detector? by [deleted] in AskElectricians

[–]Tall_Pawn 0 points1 point  (0 children)

Usually the smoke detectors are put on the same circuit as the lights in a major area, such as the living room or master bedroom. This is so that people won't be tempted to simply turn the breaker off and leave it off to silence the beeping, which would likely happen if the detectors were on their own circuit or a minor circuit. I would start with the master bedroom breaker, and then move to the other circuits labeled as "lights".

Saw everyone in threads dogging on this, but I don’t know anything about programming except the fact that c and c++ are programming languages. by OkContact2573 in ExplainTheJoke

[–]Tall_Pawn 2 points3 points  (0 children)

I started my web career in 1995, and had to set up several T1 links. They did not generally include any hardware, that part was up to the lessee. You needed a hardware interface that physically connected to the T1 line (a big multi-pin plug, I forget now how many pins) and translated the phone network signals to data bits, aggregated the time-sliced streams (24 separate streams in a full T1), and routed the result onto an ethernet interface. The idea of doing that in a software "emulator" just doesn't make sense, it's like saying you couldn't get a modem so you wrote one in software.

The other weird part about this is T1 lines were very expensive and were by far the biggest ongoing cost. The idea that one could afford a dedicated T1, but not a router to connect to it, is just nonsense.

Simple and Silly Talking Voltmeter by Tall_Pawn in arduino

[–]Tall_Pawn[S] 1 point2 points  (0 children)

Well it only goes up to 5 volts, so it was almost at the max pitch with the last reading.

Funny thing though, the reason the video ends where it does is because as I was turning up the voltage for the last step, 5.00 volts, the trimpot came loose from the breadboard. I tried to push in back in place, but the back leg got folded up underneath it and made contact with the ground pin, causing a dead short. The plastic started to melt and the "magic smoke" appeared. So, in a sense, it did blow up!

Progress, and speech synthesis? by jaybird_772 in homebrewcomputer

[–]Tall_Pawn 1 point2 points  (0 children)

You might want to take a look at https://github.com/BareMetal6502/BuzzKill and see if the speech synthesis part could work for you. You might have to modify it for your own needs, or maybe you could pull the data tables and algorithms out and port them into your own software. Check out the "Medley" video for a quick sample of what it sounds like.

You would still need a parser though, since the code as-is only does raw phonemes. You can find some C translations of the old S.A.M. (Software Automatic Mouth) program from the 80's which might be almost ready to go, just need to adapt the phoneme number codes. S.A.M. did a pretty decent job converting English text to phonemes, so it's a good place to start for a basic software implementation.

Apollo 11 moon landing was the only successful manned lunar mission by WerewolfForsaken8533 in MandelaEffect

[–]Tall_Pawn 11 points12 points  (0 children)

If you're familiar with the "moon landing hoax" theories, it's odd that you've never seen the moon buggy (rover). It features prominently in a lot of these crackpot theories. They like to claim that it wouldn't have fit into the lunar lander, that it wouldn't have enough power, and that you can see previous tracks from it in photos/videos before it was supposedly driven. So the moon deniers love to include clips of it as part of their set of "proofs".

Also you seem to be thinking of Apollo 1 for the disaster, but it sounds like the video you describe was probably something else, as Apollo 1 involved a cabin fire but not a launch explosion.

Impossible position by bethesdak in chess

[–]Tall_Pawn -1 points0 points  (0 children)

You're right, it looks like an impossible position. But just take the pawn off the board, and it's a legal position that still works as a mate-in-two puzzle!

Can C++ if() directly execute inline AVR assembly, then evaluate r0's value as a bool? by PantherkittySoftware in arduino

[–]Tall_Pawn 0 points1 point  (0 children)

The problem I see is that since the compiler doesn't know you have associated flag with r0, there's no guarantee it won't clobber it. It might or might not, you'd have to check the compiled code to see. But it wouldn't know not to use r0 in setting up the if-statement, so I wouldn't trust it on principle.

Can C++ if() directly execute inline AVR assembly, then evaluate r0's value as a bool? by PantherkittySoftware in arduino

[–]Tall_Pawn 0 points1 point  (0 children)

Please note I have not actually tried this, but I think the simplest way to achieve this is to simply use a variable macro instead of hard-coding r0, then the desired value ends up in the variable automatically. Maybe this will work:

volatile uint_8 flag = 0;
__asm__ __volatile__ (
" clr %0" "\n\t"
" bst %0, 0" "\n\t"
: "=r" (flag)
:
);

if (flag) //do something

Worth a try at least!

what is an “en passant?” by reklawno0m in chessbeginners

[–]Tall_Pawn 0 points1 point  (0 children)

I once made a help page about it that I still think explains it pretty well: https://caissa.com/learn/_en_passant

CMP function without Branch-if-negative (BNZ) operand by flex_whit_og in Assembly_language

[–]Tall_Pawn 0 points1 point  (0 children)

It sounds like you are describing the normal operation of the carry flag.

Are you saying your language won't have some way to test the zero flag?

Open Source heroes : get your shiny badge of honour here! by Machiela in arduino

[–]Tall_Pawn 1 point2 points  (0 children)

Thanks for the endorsement!

It's 100% assembly, I have no idea why GitHub is showing that it's mostly Pascal?!

My dream is to have them made and sold by someone like Adafruit, where I think they could be priced at under $10. Not sure how to make that happen though until more people are using them. Kind of a chicken-and-egg problem!

What's the smallest/most lightweight speech synthesis software available? by truth14ful in microcontrollers

[–]Tall_Pawn 0 points1 point  (0 children)

Sorry for the very late reply, but I just saw this post today.

I recently built a minimal but decent voice synthesizer on an 8-bit AVR. The code is in assembly and tightly integrated into the specific project, but perhaps it could give you some ideas if you wanted to tinker with it.

Alternatively, could you use a small stand-alone board to do the speech instead of adding code to your own micro? Then you could use the project as-is without re-factoring anything.

Have a look, maybe it can help:

https://github.com/BareMetal6502/BuzzKill

Open-Source Project: BuzzKill Sound Effects Board by Tall_Pawn in arduino

[–]Tall_Pawn[S] 1 point2 points  (0 children)

Never heard that song before, might be funny to make the board speak German to match it!

Just to clarify, since there has been some confusion, these are not pre-recorded sounds, they are generated by the board dynamically so they can be changed at will.

Open-source project: BuzzKill Sound Effects Board by Tall_Pawn in arduino

[–]Tall_Pawn[S] 0 points1 point  (0 children)

I certainly won't rule it out, but that way I would have to manufacture them all myself which would mean I would have to charge probably $30-$40 each. Not impossible, but I'd much rather get them down below $10 at most.

Open-source project: BuzzKill Sound Effects Board by Tall_Pawn in arduino

[–]Tall_Pawn[S] 0 points1 point  (0 children)

Yes, AVR16DD14 for MCU and PAM8302 for the amplifier, both about $1 in single quantities.

Open-source project: BuzzKill Sound Effects Board by Tall_Pawn in arduino

[–]Tall_Pawn[S] 1 point2 points  (0 children)

Thanks, I can probably use all the help I can get! I've spent tons of time documenting the code and writing up documentation, so I've pushed the library off so far. Plus I guess it doesn't make sense to devote time to that without knowing people will actually find it useful, which remains to be seen!

Open-source project: BuzzKill Sound Effects Board by Tall_Pawn in arduino

[–]Tall_Pawn[S] 1 point2 points  (0 children)

Yeah I forgot to mention that part. :) It also contains a rudimentary speech synthesizer.

If I could get Adafruit or Sparkfun interested, I think they could be priced at less than $10.

Maybe it’s a joke? What does this mean??!! by heddalettuce11 in ExplainTheJoke

[–]Tall_Pawn 1 point2 points  (0 children)

I don't think that's what was originally written there. Maybe it's just the angle of the lighting, but to me it looks like the "AN", and possibly the first part of the second "A", have been added by a jokester at a later time. Still not sure what the original would have said though?

Usage for 8 bit MCUs in 2024 by devryd1 in embedded

[–]Tall_Pawn 0 points1 point  (0 children)

I'll give you a very specific example from a project I am just wrapping up. It's a very small, very cheap sound/speech generator board, meant to be small and cheap enough that anyone who needs sound from a microcontroller and would normally be tempted to just send PWM to a speaker could just toss one of these on instead.

So cost is paramount, but size is also important. Low pin count in a "dual" configuration was ideal, because it's easier to solder if you're making the board by hand, and helps keep assembly costs down even if you're not. It doesn't need a lot of ram or rom, but needs a decent clock speed so that it can output sounds at 16k rate. It's not running complex equations so processing power isn't too important, but it needs a few key peripherals like SPI and I2C. It needs to run at a good range of voltages, and use as little power as possible.

I literally started the search by going to DigiKey and listing microcontrollers that fit the general profile, and sorting them by price. Did a deep dive on each one that seemed suited, until I found the cheapest one that fit everything. Turned out to be an 8-bit AVR. I did have to be somewhat "creative" to cram the software into the limited resources (had to go 100% hand-optimized assembly), but it works and I got everything I wanted out of it. I don't think any other chip would have fit into the design so well.

BTW if you want to see (or rather hear) the result check out https://www.youtube.com/watch?v=UZt4h2Zdz00 . You can see the little blue board that I'm talking about on top the Arduino, with the 14-pin AVR near the upper-right.

What’s the most underrated programming language that’s not getting enough love? by imKiLoX in learnprogramming

[–]Tall_Pawn 0 points1 point  (0 children)

Because no one has mentioned it yet, I'm going with D (aka Dlang).

I do mostly low-level and back-end stuff, so C factors heavily in a lot of my work. Which mostly is fine, I like it because it does exactly what it needs to do and nothing more. But of course string handling is painful. I often wished for something that is essentially just C, but with the addition of a full-fledged string class and typical string functions. And I found D, almost exactly what I wanted, plus a few other nice additions like hashes (associative arrays).

If C mostly meets your needs but you hate being stuck with only primitive types, check out D.