Pill Box Alert - Atiny 85
▲ 18 r/arduino

Pill Box Alert - Atiny 85

I'm trying to create a pill box alert that lights up, to remind me to take pills. Because I like pain and suffering and want to sacrifice my sanity, I plan to create this project with the atiny 85 in assembly.

I suspect the best way to go about this would be to run a series of electrical circuits in each pill box that have a magnetic sensor. When this magnet pulls away, it would cause a break in the circuit to somehow alert the atiny to "reset" its clock for that day. If the clock gets to zero, the atiny would cause led to flash rapidly.

Some difficulties that come to mind...

  1. My atiny 85 has 6 I/o pins, but there are 7 days in the week (and this doesn't account for any input from the different boxes.

  2. I need to track the time. The atiny does have a clock, but I'd essentially need two clocks. One to track the current clock countdown and another that tracks the cumulative time. For example, if I take the pills at 10 am, I would need the next in 23 hours, but if I take them at 9 am, I would need to retake at 24 hours.

Any ideas how to best go about this and is this outside the scope of something a beginner can do?

u/Ratfus — 3 days ago

Oscilloscope - Bad to Complete Circuit?/How to Not Destroy

I just purchased a new oscilloscope. I'd like it to last more than a few months (as I paid $175 for it), but I know very little about these things. I already think I messed up - luckily it doesn't seem like I destroyed it... yet.

  1. Is it bad to complete a circuit using an oscilloscope? I connected my pulse width modulator directly to the oscilloscope, which I don't think is great for it (ie. I connected the positive terminal to the positive wire and the negative to the negative wire directly). The wave looked correct on the screen, but I think I should have connected the two pmw terminals together with a resistor, then connected the oscilloscope to the positive side of the pmw and the negative side of the oscilloscope directly to ground with another wire.

2). What are some of the other important tips to not ruin oscilloscope.

reddit.com
u/Ratfus — 23 days ago

Understanding How Wireless Transmitters Work

Hi,

I'm trying to learn about how radio transmitters work. So I'm thinking of building one by scratch with some cheap parts. If my understanding is correct, a signal heads into an oscillator module, which converts the DC into AC at a certain frequency. From there an amplifier makes the signal stronger. Finally, the signal essentially gets dumped into the antenna, which produces electronic waves. The frequency of those waves are determined by the AC current the antenna receives. So for example, if I want 1 gigahertz, I would want my oscillator to emit said waves. Then, there needs to be some sort of anti reflection device after the antenna? I've noticed a few of the modules let you adjust frequency with the voltage they receive.

Is my general understanding of how they work correct? Would this be a good beginner project? Doesn't seem too complicated.

reddit.com
u/Ratfus — 24 days ago
▲ 53 r/arduino

Useless Projects - Part 2

Sorry guys, this one won't give you seizures like the flashing lights.

This is my second useless project in the series. I essentially made a fuse for a led. By turning the dial, you adjust the time before the light turns on. In my defense, I did this in assembly. I did use chat GPT here and there, but I still think it gave me a better understanding of bytes, bites and bit flags/masks/bit shifting in AVR.

Wonder if I could attach a transistor to this thing and use it to light fireworks? Somehow, doesn't sound too safe though.

u/Ratfus — 28 days ago
▲ 14 r/arduino

Solder Joints- Smash or Pass?

So I'm practicing soldering and I'm not sure how good these joints are on my shield. Probably not the worse ones shown, but I'm not sure if they're supposed to look like this? It's unlikely I'll ever get them as good as the pre soldered parts, but I guess that shows love?

u/Ratfus — 1 month ago

How to desolder?

How do I Desolder without destroying components?

I still can't desolder components months later, despite trying countless times. I always have to break the components in order to remove them, no matter how many times I pump out the solder with desoldering pump/vacuum, no matter how much flux I use, and no matter how hot I turn the iron. Anyone know how I can desolder without ripping apart the components? Always seems like there's a little solder hiding next to the wire, which is extremely difficult to remove.

I can remove the wire by pulling on it while applying heat from the gun, but if it's a component with multiple points, I have to destroy the component, then take each wire out using the above technique. I basically have to make the component look like it just got out of a horror film. Luckily, I only work with relatively cheap components. Definitely would not use my technique on a more valuable part though.

reddit.com
u/Ratfus — 1 month ago
▲ 40 r/arduino

Inverted Hex Schmitt Trigger

I can't for the life of me understand the Schmitt trigger and what it does; from a theoretical point of view, it removes noise and converts a signal into a digital, on/off signal.

In practice, it doesn't work as expected though. I have the below setup. When I connect the cable (A1) to ground the light goes on as expected. When I connect it to 5V, the light goes off as expected. When I hook A1 to the perimeter, the light goes off, regardless of whether I have it emitting power or turned off. Why is this happening? It should go on or off.

I've tried to hook the potentiometer up to vcc and the light to + for shits and giggles, but also get strange result.

u/Ratfus — 2 months ago

Most Useless Project!

I'm trying to learn embedded assembly so I built a tool to test the atiny85. Effectively, each pin is attached to a light and the button resets the chip. Interestingly, it moves so fast, you can't see the white light.

I find it pretty cool to control the chip without a bootloader or operating system.

u/Ratfus — 3 months ago

Printed Circuit Board - Shorting/Leaking

I've recently started playing around in assembly on an 8 leg atiny 85. After struggling forever, I finally got the programmer working. I originally purchased the Amtel Ice, but couldn't get it working. Ended up purchasing the usb atiny 85 programmer.

Anyways, the programmer is working fine now. Problem is that programmer only lets you test pin 0 and I don't want to destroy it with my testing, so I'm trying to build a tester on a printed circuit board. This custom board has a bunch of leds connected to a socket in the center of the pcb. You insert the atiny into the socket to test it. The problem is that I have a tiny leak/short on one of the lights. I can't for the life of me determine where it's coming from. The leak appears to be so small, that I can't even test for it with a continuity check. I've replaced the socket twice to no avail. When I touch two points on the socket with positive voltage that runs to ground, the red led turns on. The first time it's bright as it should be; the second time it lights up dimly. Only one socket port should light the led.

Any idea how to determine the location of the leak or if there even is one? Maybe the socket itself leaks or the tiny amount of flux is shorting it somehow?

reddit.com
u/Ratfus — 3 months ago