Kody's Build Log

I have been working on an 8 minute annoying buzzer along with going through Chris’s Current Sink or Swim class.

The 8 minute timer basically consists of one 555 timer that turns on another 555 timer for one second (roughly) every 8 minutes (roughly). The second timer buzzes a buzzer. It is meant to be like those annoying buzzing toys one could buy on amazon.

The 8 minute time arrived, but is not working correctly. It shows 0.65V at the discharge and output pins of the 555 timer that is supposed to delay the buzzing for 8 minutes. Below is a picture of the schematic and pcb layout. Everything else is also on GitHub here GitHub - PhysicsUofRAUI/disruptivetech: place to hold all docs wrt electronics meant to be annoying or disruptive.


Any ideas or suggestions on that problem would be much appreciated.

As for the current sink or swim it is going well, but I am taking some time to brush up on Op-Amps and transistors. I also am trying to do all the simulations with KiCAD.

After I complete the Current Sink or Swim I am going to finish the first board for a project which is meant to hoot at birds if they come too close to the device. That project info can be found here Hooter.

Sorry if this post seems a little scattershot. That’s just how I am sometimes :person_shrugging:

Dear Kody,
The annoying buzzer project sounds hilarious. I think it’s cool you’re working on multiple projects right now and hope you continue to post about them :slight_smile:
I’m just a hobbyist, so I hope someone with more knowledge responds to you, but I’ll give a go at trying to troubleshoot your circuit.
Here’s my questions so I can try and help more:

  1. Just out of curiosity, did you try to breadboard your circuit? If so, did have any issues with it when you did?
  2. Did you use a reference circuit or create it yourself? If you used a reference circuit, can you link to it?
  3. Can you give a list of the actual parts that you ordered or are using? (So I can see the parameters of the parts)

Here’s my best guesses:
I believe that the leakage current of your electrolytic capacitor is great enough to either cause C7 to charge very slowly, or worst case, not at all.
Let’s examine the circuit when it first starts up. Voltage across C7 is 0V. Vf of D1 could be approximately between 0.3-0.7V (depending on the type of diode you’re using), resulting in a voltage drop of 2.3-2.7V across R1.
I = V/R therefore ~5 to 6μA across R1 (437KΩ).
I’m not sure what electrolytic capacitor you’re using, so I pulled up a datasheet from Panasonic. Panasonic Aluminum Electrolytic Capacitors Datasheet It says the leakage current is “I ≦ 0.01 CV or 3 (μA) After 2 minutes (Whichever is greater)”. I’ve seen some graphs that suggest the leakage current is even greater initially. Here’s an example.That means a significant amount of the initial charging current for the capacitor could be leaking through it, seriously affecting the ability of C7 to charge, and therefore affecting your timing.
Also, R2 has a value of ~200MΩ. Doing the same math, the leakage current of the capacitor is much greater than the current that is able to go through that resistor at that voltage. The threshold and trigger pins have a current too, but it seems as if it is a few orders of magnitude lower than that leakage current.

I also think that it is possible that your 555 might not be able to source enough current to power the other 555 timer and the buzzer. I read that a generic buzzer can use ~10mA although I don’t have one to currently test. If you take the datasheet of the 555 timer I used in the project, according to Figure 9, I don’t think it would be able to power the second 555 timer and its buzzer at 3V. If you compare Figure 9 and Figure 10, it seems as if there can be a difference as to how much current the output pin can source versus how much it can sink.
Please take what I said with a grain of salt, as I realize that it is likely that I’m wrong.

Guidelines I’ve found:

  1. According to multiple sources I’ve seen, it’s best to try and use resistor values of between 1K and 1M. “For standard 555 timers use timing resistor values between 1K ohms and 1M ohms.” 555 Timer Tutorial - Resistor Values
  2. According to multiple sources I’ve seen, electrolytic capacitors shouldn’t be used for the 555 timing circuit because of their variability (up to 20% or more) and because of their leakage current. 555 Timer Tutorial - Capacitor Leakage Here is a cool article I found on the leakage current of capacitors depending on type and other parameters: Leakage Current Characteristics Of Capacitors.

Here’s what I’d do if I were you:

  1. I’d breadboard the left part of the schematic, and for output I’d use an LED in series with a 1K resistor and power it with the 3V battery. Does the LED flash with the current components? I’d likely hook up an analog Arduino pin to monitor the output( eg. U3 Output to Arduino A1 and Breadboard GND to Arduino GND) and write a program to display the voltage over time in a graph over the serial monitor (or a program that lets me know when the output reached a threshold voltage and for how long). If it didn’t work, I’d decrease R1 and R2, and increase C7 according to the guidelines on this link or the 555 timer’s datasheet. Also for C7 I’d try using several ceramic or film capacitors in parallel to get the capacitance for the desired timing. You might be able to get away with higher than 1M resistors if you use capacitors with lower leakage currents?
  2. Once I got the left side of the schematic working, I’d breadboard the right side. Instead of hooking it up to timer_out, I’d hook it up to 3V to make sure it worked with the buzzer. If it didn’t work, I’d try powering the buzzer through U2’s output using a transistor or mosfet. Alternatively, I’d try sinking the buzzer with U2’s output instead of sourcing it. If that didn’t work I’d try powering the circuit using a source with a higher voltage (eg. 5V) and capable of sourcing more current (eg. USB power supply) to see if it worked then.
  3. With both the left and right side of the schematic working, I’d hook them up like in your schematic. If it didn’t work, I’d try powering U2 through U3’s output using a transistor or mosfet. If that didn’t work, I’d probably power the circuit using a source with a higher voltage (eg. 5V) and capable of sourcing more current (eg. USB power supply) and see if that worked.

I hope it was what you were looking for and that you found it helpful. Please let me know how your troubleshooting works out.

Regarding your hooting owl circuit, I suggest you look into low power modes for the AVR microcontrollers. Nick Gammon made an amazing post on low power states of microcontrollers. Arduino docs has a great article too.I agree with your posts about having the ATMEGA328P wake up periodically, power the sensor via a mosfet, take a reading, turn off the sensor, then go back to sleep. There are some ultrasonic sensors that work at lower voltages. This one goes down to 3V. If you can get the PCM library to work with the ATMEGA328P running at 8 MHz, then you would probably be able to run the project off 3 AA batteries in series. They’d start off at ~4.5 V and be good until they got down to ~3 V. If you were able to put the ATMEGA328P into sleep mode, waking it up every 8S with the watchdog timer and taking 0.5S to operate the sensor, then you’d be averaging about (8 S * 0.005 mA + 0.5 S * (4 mA Sensor + 4mA ATMega)) / 8.5 S or 475µA instead of the 4 mA you’ve calculated for the sensor alone. The 4 mA sensor value was from your post and the 4mA ATMega was from this datasheet. Assuming 2000 mAh like you did, that’s 2000mAh / 0.475 mA, or ~ 175 days. If you were able to sleep for longer or decrease the on time of the sensor, I totally think it is feasible to power your project for a year off of batteries. I would suggest using the lithium AA batteries because in my experience they can handle -40C a lot better than the alkaline ones.

Sorry for the long reply. I can remove it if it is in the way of your build log.
Take care,
-Murray

Thanks for the great reply (it is by no means too long, I love hearing others thoughts). I am also just a hobbyist at the moment too.

I’ll start with that I solved my 555 buzzer and long timer circuit. Embarrassingly enough the problem was the [expletive] ground. I was sure I double checked all the solders, but when I got the circuit working on the breadboard I rechecked them and sure enough the ground of the long timer was not connected.

Your points about using a larger capacitor are interesting though and I may do that. As to your request about the actual parts the timer is TLC555, and the rest I’ll add to my GitHub soon.

I’m definitely going to read up on capacitor leakage current, and all your great inputs for my hooting owl project.

Thanks again for your reply.

This will be a short build log, because I am a wee bit tired.

I have things to report on three different projects

  1. The Owl Hooting Project.
  • I have received a couple of louder speakers from digikey and I tested the loudest out. It appears to work well (now that I have it working correctly). More info can be found here Hooter Louder Speaker, and a demo can be seen on YouTube https://www.youtube.com/shorts/UxonB4UgZeo.
  • I have also created a base wiring schematic using the ATMEGA328, but after reading Murray’s reply more carefully I realize I need to make some changes to the circuit to turn on and off the ultrasonic sensor (I didn’t include the Mosfet :face_with_open_eyes_and_hand_over_mouth:).
  • main problem with this project is the power still and will be working on it while field testing. Will definitely be looking closely at Murray’s advice again!
  1. The buzzer circuit
  • I ordered a batch mostly assembled from JLCPCB and those aren’t working now!
  • I assembled and tested 5 of them and none of them work. I had the thought it may be because some of the components aren’t designed to operate at 3V so I wired a 9V battery to one and got some action, but not quite right still (more of a weird buffering sound).
  • Right now the plan is to test it at 5V and if it works desolder the timers on one of them and put the timers that I know work on to see if JLCPCB put the wrong timers on (I did check to make sure the ones I ordered operated at 3V).
  1. Current Sink or Swim and OpAmps
  • I finished all of Chris’ videos up to the assembly of the CSOS, but have not yet ordered it yet. I just did not feel like I understood it enough yet.
  • I decided to learn more about OpAmps and while furthering that goal I have simulated many of the classic OpAmp circuits and stored them in a GitHub repo.
  • Now I plan to set up those classic circuits on the bench and go back to the CSOS project and add in some test points so it is easier to test than the original version.

Well I think that is all. I welcome all comments and suggestions.

Its been a long time since I’ve done a build log, so this might be a bit long.

Hooter/Sound Effect Project

  • I redesigned the PCB that will use the ATMEGA328 to include the mosfet to turn on and off the proximity sensor, but found the following problems
    • The ISCP header had no labels on it which made wiring difficult
    • If I want to program it with the Arduino IDE the Rx and Tx pins need to be broken out.
    • The proximity sensor had to be mounted on the opposite side because its pins were ordered wrong.
    • Indicator lights could be added to better trouble shoot what is happening.
  • Currently that PCB is not working, but I will redesign it later once I have a working breadboard prototype (should have been done first anyway). I also want to make it so the sound is louder.
  • I did create a version of the Hooter project that makes halloween sounds (pennywise laugh version here: https://www.youtube.com/watch?v=LFq9oWnGOX0). This version ended up using and Arduino Uno R3 plugged into power and the speaker being powered separately by a battery pack. I also worked in a delay of reading the proximity sensor to prevent the sound effect restarting.
  • For more information about the halloween sound effect you can go to the Hackaday page for it, Scary Sound Effect | Hackaday.io, and my blog post of it on farm hacks Halloween Sounds.

Grain Spoilage detector

  • I redeployed the old Arduino prototype of my grain spoilage detector.
  • Initially none of the cables worked, but that turned out to be because I forgot that a smaller pull up resistor was needed for the bins further away to work. A review of the 4 bins are below:
    • The bin furthest away still needs a smaller pull up resistor. Initially it was never making contact and now it is making contact, but not long enough to actually read data (-100 is an error and then 85 is the default value and currently it oscillates between them).
    • The second furthest away is operating fine.
    • The second closest prevents the device from working. It just never reports data from anything when plugged it. Not sure why at the moment.
    • The closest had its cable ripped out by the force of the grain (will probably need to create cables reinforced with steel cable/rope).
  • this project is in theory my main focus, but I am trying to do a few other projects before to try and gain traction and iterate faster.

Temperature Puck

  • This is going to be a simple puck sized device that can read the temperature using WiFi around a home.
  • It will use MQTT to relay the temperature data to a users cell phone.
  • My goal for this project is to give me experience designing a market ready product from start to finish.

Analog Discovery 3

I have also bought and received the Analog discovery 3. Below are the things I have already done to learn how to use it and what I plan to do with it.

  • I have done the setup and the basic readings that were with that.
  • There is also a list of labs, https://learn.digilentinc.com/classroom/realanalog/, and I have went through a few of them.
    • lab 1.2.2 Dependant sources and MosFets
    • lab 1.4.1 Dusk to Dawn lighting
  • The labs I plan to go through are
    • lab 1.4.4 temperature measurement system
    • all of chapter 5 labs about Op Amps.

After going through all those I may do some more of the labs in that link, but hopefully I’ll know enough of how to use it to start analyzing cooler stuff.

Conclusion

That is all I recall having to report since the last time I did one of these. Hopefully I will get more intentional with my studies here and that will result in more progress and more frequent updates.

Thanks to everyone who read it and feel free to leave any comments or suggestions.

1 Like

Hey. I haven’t done a log in a long time and everything that has happened is all confused, so this log will probably be confusing too.

Temperature Puck

Review of Work Done

  • a MQTT server was created on Digital Ocean to relay messages from an Arduino MKR 1010 to a phone or other 'subscriber of MQTT messages.
  • initially done because my parents pump house froze up resulting in no water for a day. The pump house is an outbuilding that gets heated by a couple of space heaters and sometimes they shut down, so it could freeze up. In this case the pump itself cracked so it was expensive and time consuming. Having a temperature sensor allows us to monitor the temperature.
  • Eventually the MKR 1400 was used because the pump house has tin around it now and that blocks the WiFi connection. It was also found that the GSM was disconnecting from the server about once a day, but that got fixed by putting in a check as to whether or not it is connected to the MQTT server and if it is not it will reconnect.
  • Work on an App using Kivy (a python framework) is on-going and currently is at the point it would on my computer but fails to launch. I am hoping to get it working sometime this week on my phone so that I can move onto other stuff like writing the code to allow users to enter their own WiFi credentials.

You can check out all the work on the temperature puck on the GitHub here: GitHub - PhysicsUofRAUI/temperature-puck: A temperature monitoring device in the form of a puck.

Future work

  • Finish Kivy App.
    • allow users to set up and monitor multiple temperature pucks from the app.
    • view both the current temperature and a graph of the temperature over the last 24 hours or so.
  • Choose development environment/micro-controller family for final version.
    • in the end I want to get away from the Arduino platform because I want to learn more about micro-controller programming by finishing this project.
    • I’ll be reading up on different ways people program projects such that non-tech savy users can set up new products to use WiFi, because that looks like it may be the biggest hurdle.

New Lab/Garage

Over the past 6 months I have been building a new two car garage with a living space above it. The garage will largely be dedicated to working on electronics projects so that is very exciting to me.

My next post will likely show a finished soldering bench that is for the moment just a coffee nook.

Conclusion

Thanks for reading my disorganized mess. Hopefully I’ll start writing updates at least once a month, but we will see if that happens.

Hey everyone! It’s been a while since my last update, and my plans have shifted a bit, so I wanted to share my current goals and progress.

Learning the Art of Electronics (LAOE)

Many of you have likely heard of this classic book (and its parent, “The Art of Electronics”). To strengthen my fundamental understanding of electronics, I’m working my way through LAOE and completing the accompanying labs. At the end of each chapter, I’ll build a small circuit or project to apply what I’ve learned and hone my design skills. I feel this approach is important because I often find myself limited by my knowledge of basic components in my larger projects. The hands-on labs and projects in LAOE are a major plus for me.

Currently, I’m reading Day 3’s material and aim to finish it by the end of next week. My plan is to complete one chapter every two weeks until winter, then ramp up to one chapter per week during the colder months. This schedule should have me finishing the book in March – right before my birthday! I’m taking a slightly slower pace to ensure I have time to experiment and really understand the different components.

Here’s a quick recap of what I’ve covered so far:

Chapter 1/Day 1

Focused on DC circuits, building voltage dividers, discussing resistor types, and getting familiar with measurement tools (oscilloscopes, etc.). I practiced using my Analog Discovery 3, which was helpful even for familiar concepts. I also built a simple project (a circuit to monitor voltage and current across a device) to create a V-I curve, as described in the book.

Chapter 2/Day 2

Covered RC circuits. I gained more experience building circuits and was introduced to creating non-DC signals (for the first time in this journey). For the project, I designed High Pass and Low Pass filters to the specifications given in the lab.

In future posts, I’ll dive into specific questions or concepts I found challenging in the chapters.

Bin Temperature Monitor

This is an ongoing project that’s currently deployed with an Arduino using the IoT cloud. However, the cables are showing wear and tear. Over the next couple of weeks, I’ll rebuild the cables and reinforce them with wire rope.

Later this year, I plan to redesign the software and hardware used to collect data from the cables. I previously attempted to design a custom board but got stuck – this is part of why I’m revisiting the basics with LAOE.

Temperature Puck

This project is on hold for now as I focus on upgrading the grain bin temperature cables and my electronics learning journey. It will likely resume sometime in November, with the goal of applying new knowledge to the data collection and app interface.

Conclusion

Apologies for this being more of a roadmap than a detailed progress report, but I haven’t updated in so long that I’ve lost track of a lot of the work I’ve done! My next updates will focus on the small projects I complete at the end of each LAOE chapter.

Thanks for reading!

1 Like

Just curious. For your grain bin temperature monitoring, have you any signs of electrostatics? Falling grain in dry air can pick up a charge, if I recall correctly. Enclosing the sensors (DS18B20?) in metal may help reduce.

On particularly long runs I’ve used a 12V supply with a 78L05 nearer a DS1820 sensor. Not too close, as there is some heating.

I have heard that too and do not believe that I have had that particular problem.

I am using the DS18b20 sensors (bought a bunch from AliExpress once).

My main issue I think is wear and tear (literally) on the cable itself. The have been multiple sensors ripped off and ended up in the auger and even an entire cable came down once.

The current plan is to take some wire rope and heat shrink it to the fire alarm cable and the sensors.

Here to update how my grain cables worked. In short did not go well.

What happened is that we installed it in one bin and then unloaded wheat into that bin. It would appear that the force of the wheat tore the wire itself apart. This was surprising to me since the previous version did not have wire rope or heat shrink included (all there was is the insulation that the wire came with). Wheat is a much heavier and abrasive grain than others used before so that most likely was the issue.

My plan now is to actually reach out to wiring assembly companies to see if they could make a cable to the specifications that is needed to withstand the unloading and loading into the bin. My home made methods take a long time and don’t appear to be working. I’d be interested to hear any body else’s ideas.

My next build log will probably focus on my efforts to go through and do all the labs of Learning the Art of Electronics!

2 Likes

If you just want reliable cables, you might look at simply buying (or copying) cables from an established provider. OPI (https://opisystems.com/) is a Canadian manufacturer based in Calgary who make cables and monitoring systems systems (local and cloud) using standard 2-wire temperature and humidity sensors. They will want to sell you a complete system, but you might be able to negotiate just cables. Do a web search for “opi systems grain monitoring temperature cable” for more pics and distributors. Disclaimer - I worked for Opi for a few years back managing NPI for their grain-drying fan-controller product (there are also quite a few other manufacturers in the same space).

image

Hey!

Thanks for the reply. I am aware of those and have thought of buying them just to have something reliable, but I still want to make my own eventually too.

I also previously had the misunderstanding of them being a lot more expensive than they are.

Thanks!

I just finished the build of the project I created for the part 1 of Learning the Art of Electronics. The project’s goal was to create a DC power supply of about 9V.

There are a couple of things to report and I wanted to get them out of my head while they are fresh in my mind.

First here are some pictures of the schematic and PCB layout.


The biggest mistake that became apparent after I started assembling was that the rectifier chip’s footprint was wrong. The pins in the footprint were labeled wrong, so I had to get a little be creative and use an 8 pin pinout board (could be SOIC 8 but I’m not sure) to get access to each pin better. I then used alligator clips to clip it to the test pins. See below for the final monstrosity.

Now it did end up working but was a bit odd. In the following ways:

  • The AC Voltage after the transformer was 13V
  • The DC Voltage was nearly 16V (15.5V to 15.8V)

Here are some photos showing the readings


Now I have answered one of my own questions while writing this and that is my high AC voltage. If one goes to the datasheet of the transformer (https://www.zettlermagnetics.com/pdfs/EI30_1.pdf) and read the part for BV301S10010 then it says that the no load max is 14.2V. Since all that it was driving was the LED and the resistor that makes sense.

The other surprise was that my DC voltage was 15.6V (or so) now I am guessing (pretty sure now that I am thinking of it) that it has something to do with V_peak vs V_rms. I am going to think about this and redo my calculations.

So my action items are as follows:

  1. Fix the footprint for the rectifier.
  2. Redo my calculations for the after rectification voltage.

To end with here is a photo of the LED on showing that it at least working in that way!

Aside:
I have just finished lab 5 of Learning the Art of Electronics so I now need to do a project for part 2, and I will be posting about it later. I will also likely post a bit on how my home built Op-Amp went together.

1 Like

Any idea where this went wrong? Did the wrong part get ordered? Did you make an assumption when you placed the footprint? Something else entirely?

This seems right to me, especially when you look at RMS vs P2P measurements. The latter normally defines how you will charge up a capacitor, with some marging for the frequency of the incoming signal and how your capacitor holds charge over the cycle

image

One thing you and I talked about is how a regulator can help after this kind of circuit, even though it’s not part of the lab you’re working through. It’s great to see some of the practicalities of how we measure things played out on a DMM. Have you had a chance to analyze the signals on the secondary side using a scope? Be sure to be mindful of voltage levels if using the AD3

For the mistake of the footprint if I recall correctly I was going through some generic footprints and just verifying the measurements with the datasheet. I do believe I did not look at the pin numbering and verified that. So that is where my mistake would be.

It was cool seeing different things on the DMM. I am planning to draw more current from the supply later, so it will be interesting to see what that looks like.

So after chatting with @ChrisGammell a bit and thinking about it I think the biggest thing giving me my odd readings (to me at least) is that it wasn’t loaded with anything.

I connected two Blue LEDs and two 560 Ohm Resistors to the output of my power supply and I got readings more in line to what I expected.
Vdc=10.66 and Vac = 10.96V with the multi-meter.

Here was my set up.

When two more 560Ohm resistors were added the following was found:
I = 91mA
Vdc = 9.3V
Vac = 10.2Vac

Adding or removing a resistor changed the current by about 10mA.

I estimated the ripple voltage to be 0.4 to 0.5V when it is drawing 91mA from the below AD3 output.

I did get a weird read on the AD3 for the AC after the transformer though.


The blue is the AC after the transformer. I tried both the AC and DC coupling (thought I may as well) and got the same thing.

I was expecting a sine wave, so I am a bit confused. Is it stuff further down the circuit making it look like that?

Overall I would say it works except for the variation in voltage with regards to load, but as @ChrisGammell said that can be fixed by adding a regulator. I am planning to do that after I’m done chapter 11 (I could do it now, but may as well stick to the schedule).

I will have to think about my readings of the AC after the transformer for a little bit more though, because that looks weird to me.

1 Like

Well I have done some googling (probably should have done that before) and the weird wave I was confused about is likely core saturation of the transformer I’m using.

If I basically disconnect the load I get below

From what I read it sounds like some manufacturers of small transformers like I am using design them to operate in saturation so that is probably what is happening.

I’m curious where you read that…I’ve never heard about that sort of thing before, but I’m not doing a lot of transformer design. Being at 90% of the rated output does make me think it’s pretty well loaded though.

The distorted output is not too surprising since it’s operating close to its full rated load. You can’t expect good regulation from a dainty little thing like that, as good regulation generally involves bigger cores, bigger wires, more turns, etc.

3 Likes

All power transformer output voltages are specified at rated load current, where efficiencies come into play. For your transformer (which @JuliaTruchsess rightly calls a “dainty little thing”), the no-load secondary voltage is expected to be no more than 14.2V at 115Vac primary, and the secondary voltage is then expected to drop to between 9V and 11V with a load current of 100mA. Your results all agree with what would be expected for a transformer not operating in saturation.

To be sure, you can push almost every transformer into saturation, and a lot of “bargain basement” power supply very often do this because they don’t care if the transformer’s operating life is barely longer than the warranty. Operating in saturation for part of the waveform does give additional output power, but at the expense of increased internal heating - a leading cause of premature linear power supply failure.

1 Like