Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by admirlk

  1. Circuit Help

    I will probably switch to using a micro, but getting something working, without one, should help me with writing the code. I record concerts, and recently switched from recording into a laptop to a multi channel recorder. While I have used worse, the deck's meter is lacking, compared to the software one I am used to. One reason for building this is to get more resolution, the only markings are at -18dB (?) and 0dB. Also, there is no peak hold, so unless I am looking at it, when a spike happens, I do not know how close it came to clipping. In addition, I also want to add a clip indicator, as I have found the one in the deck to be unreliable. I ran into this the other day, which got me thinking about this project. This would also give me better visibility. I looked at a couple chips, and the LM3915 seems to be the best fit for this project. For the most part, all the examples I have found are for "dancing lights" which might be nice to look at, but not of much use for my purposes. The base, "dancing lights", part is pretty straight forward. The peak hold and clip indicator are where I hit a snag. Doubling up the LM3915 and using one in dot mode, for the hold, seemed like a good idea at first, but not so good the more I think about it. I found one explanation of switching between bar and dot mode to achieve the hold, but without a schematic to reference it is hard for me to follow. Ideally, I would like the peaks to stay lit, as opposed to falling off, as is normal. Thinking about it more, an extended hold time would be a better option. That brings me to the last problem of the clip indicator. That is easy enough to light, but needs to stay lit, until reset. This is the meter I am used to, and what I am trying to somewhat emulate. The inner bars are the VU meter, but it is the outer, peak meter I want. The values to the right are what I was thinking about with making the peak hold persistent. While I will not be able to go get a beer and come back to see that I was coming close, and should probably turn down, I would like to be able to see how high it got after I hear a spike in volume, or crowd noise. A simple clip indicator will be good enough to warn me of problems. Now that I explained my goal good enough, I hope, on to what I have so far. The recorder runs on 12V DC, so I figure sharing a battery would be the best power solution. If this ends up too power hungry, I bring spares, so I can a separate one if I have to. I will need to come up with a way to drop the voltage, for the LEDs, but that can wait for now. The second LM3915 can be ignored, I just did not delete it yet. The rest is mostly taken from the datasheet, so should be OK, except deciding on values and what not. The 5V for the LEDs is just an arbitrary number to fit the requirements; 3V < > Vcc. What I need to figure out first is how to do the switching between bar and dot mode. The circuit theory, from the meter kit, linked above, uses a transistor, nand gates, op amps, and bilateral switches to do this. While I can sort of understand how each works on its own, I am lost when it comes to putting then together. If someone could help me with that part of the circuit, it does not have to be a direct fit, just something similar, it would be a great help.
  2. Circuit Help

    Well, I got the first stage doing something on a breadboard. The wave flattens out quite a bit, but I used my laptop for a signal source and it does not go very loud, so all I could see was slightly wavy trace on the outputs. I was not able to tell, for sure, if the outputs were different, or not, but I do not expect them to be very different. I could not get a 4066 locally, so I am waiting on that to add the second stage.
  3. Circuit Help

    Yea, I plan to breadboard it first, only problem is I do not expect to see the LM3915s until the middle of next month. I have one more part to figure out, the clip indicator. Since it needs a reset button, to turn it off, if it goes on, it is not as straight forward as just turning it on. I tried making a truth table, but for 0 & 0 no change is made. clip reset result 0 0 0 1 0 1 0 1 1 1 0 It is trivial in software, the pseudo code would be for(;;;) { if(clip) LED = 1; if(reset) LED = 0; } Maybe I am over thinking it and a simple OR gate would do the trick?
  4. Circuit Help

    i have that one and the TI one, basically the same. The rectifier comes from there, as well as part of the switch. If I knew more about electronics, I could probably pick things out better. The guy at the electronics shop asked me why I do not pick simple projects to do. The only answer I could give is that would be too easy. While I generally need help, I learn ,more if I am in over my head. I think I have the hold part sort of figured out, although I do not think I have it right.
  5. Circuit Help

    OK, I think I have the switching mostly worked out. I need to redraw and organize this better, but I think the idea is sound. If I understood the description right, I should be able to take a branch from the rectified signal, pass it through a resistor and capacitor, in parallel, then in and out of the 4066, and finally tie it to the signal input on the LM3915. That does not sound right though, and I feel like I am missing something.
  6. Circuit Help

    Double post, not sure how that happened.
  7. Circuit Help

    Hmm, After going through 300 or so magazines, I found one project using a LM3914, but it was unhelpful. In my web searches, that landed in a forum where this question was asked, someone always says there is an example in the datasheet, but no matter how many times I look I cannot find it. Or that examples are readily available, but that is close to an example as I can find, which is why I tried asking for myself. A couple times a circuit similar to the one I mentioned was mentioned, but only as far as a parts list. I did finally find one, in the datasheet, that had a switch, so I have an idea of how to do that part now. I am still not clear on how to do the hold though. The chip really has not been obsolete for that long, I think it was still readily available at the beginning of last year. I have never had a problem buying from China, other than waiting a month to get my order. As long as they work, it is not taking away from anyone, since the original manufacturer stopped making them. At 10 for < $5.00 shipped, I will have plenty of extras, if I ever need them also.
  8. My Stupid Question Space

    Since I am liable to have a lot of these, I figure it is best to just consolidate them all into one thread. I think I am fairly competent in C++, for desktop, but am new to embedded. My electronic knowledge is very basic, at best. Most of my questions will most likely concern the architectural, or electronic, elements of the msp430g2553 in general, since that is what I am working with, although they could be more general, or involve code, as I learn more. I am currently reading MSP430 Microcontroller Basics . If you are familiar with the book , you will know it involves a different chip and was probably written before the Launchpad came out(?). I am definitely not using the same board anyway. Instead of trying to use the on-board stuff, I am working with a breadboard, also. Everything else aside, this means that is not possible for me to just copy the code and see how it works. This brings me to stupid question #1. The second program involved using a button to turn the LED on/off. I figured out how to enable the internal pull up/pull down resistor, but did not find anything about how to set it to one or the other. Since what I did worked, is it safe to assume that the chip is smart enough to figure out witch one you want?
  9. My Stupid Question Space

    Cool, it is certainly cheap enough, that I will probably go ahead and order one. Not sure when I will get to use it, but it never hurts to have test gear.
  10. My Stupid Question Space

    That is exactly what I was looking for. Switching all at once would be better, but cannot have everything. I started with the value line workshop, but did not care for all the C&P involved. The book seems to give better detail on why you are doing something, as you are doing it. Plus it allows me to work on a breadboard, and figure out how I need to write the code to make it work, as my first question shows. Unfortunately I have not had time to move onto the next step; adding a second LED and button. I have taken a little time to look into logic analyzers, and found this one on ebay, that should work with sigrok. I assume that is what you all are referring to.
  11. My Stupid Question Space

    I was hoping there was a setting, or something, I did not find. If I remember right, it was easy to switch back and forth in VS. I have a PDF that goes up to 0xff, on one page, so that is handier than using a calculator. I could probably whip up a converter to do the same easy enough also. I did that for converting to/from metric because I got tired of looking it up all the time. I hope to get past the LEDs eventually, but there is a lot more for me to learn, and I cannot just breeze through it all, like with Arduino. And before someone says look into Energia, I am not looking for the easy way out. I am hoping to eventually find employment.
  12. My Stupid Question Space

    Hi, I have not gotten to interrupts yet, just just the cheap and dirty way the book describes. I need to wrap my head around bitwise operations first. I also need to get used to CSS. I never looked at registers before, except for the little assembly programing I have done, so I did not think to do so originally. I did find them, and found out why I got lucky, all the pins were set at the start. That leads me to another question: is there a way to switch to binary from hex? It would save me having to look at a chart to see what actually changes. veryalive, I have an analog scope, I think that would work as a limited logic analyzer? At this point I have only turned an LED on/off with a button, so there is not much to see with either one.
  13. My Stupid Question Space

    Ahh, I kept missing that second part, and it makes sense. It is good to know that I just got lucky on my first try. Now I will not be scratching my head, next time when I would probably not be so lucky. Much thanks!
  14. CCS7 Requirements

    It appears that CCS requires certain Windows Updates to be installed, before it can be installed. I found one of the two missing ones, but Windows Updates have been broken for several years on my machine. In other words, the 26k file I found is at 0% after 10 minutes. The last time I tried a similar sized update, it was at 0% after 24 hours. I will leave this going for now, but am not expecting it to get past 0%. I noticed in another thread that the CCS6 license is now free and found the download for it. I am curious if an older version will have the same requirements, or not. I have had Eclipse installed within the last year or so, so if this has to do with Eclipse I am thinking it will work. If it has to do with the plugin, I might still be out of luck. Since this the "defacto" IDE, I would prefer to use it. Any help or advise is appreciated.
  15. CCS7 Requirements

    Oops. I kind of mixed several things into one there. I should have said; I only have a 32bit Linux VM, so I would have to install a 64bit one. It seems to be working, on Windows, for now, so I should be OK. Going back to CCS6 will be the next thing I try, if I run into problems I cannot find a work around for. I am not sure what to make of the advice/problems part of CCS. Since the code I copied is supposed to be what comes installed with LP, it seems odd that it would show 8 problems with the code. It is either extremely picky, or TI did not do a very good job with the example code. I suspect it is a little of both.
  16. CCS7 Requirements

    I only have a 32bit Linux VM, buy I think I will be alright for now. I C&P'd the blinky code from the workshop onto a blank chip and everything seems to be working. Now the fun part begins, learning how to actually write the code myself.
  17. CCS7 Requirements

    Thanks, I am used to these kind of problems, in general. At one time I had a dual boot Linux/Windows machine that did not have a C drive, I put Linux on that drive and installed Windows on E, or something. I am sure you can imagine the mess. I am mostly just venting here, and hoping someone might have had a similar experience and could speed up my troubleshooting. Or maybe it will help someone in the future. Cloud/internet applications tend to be troublesome for me also, due to an unreliable connection. Online installers rarely work for me, as one example. It looks like I can use http://dev.ti.com/tirex/#/ and download anything I might need, indirectly, so that is a better solution, for me, than using it outright. I should get my LP tomorrow, so I really will not know what kinds of problems I will have until after then.
  18. CCS7 Requirements

    Following up. I found one similar case, and had several missing entries in the comfig file, as in the example. I think this was caused by having to restart the install. I uninstalled it, put it on the wrong drive in the first place, and it now starts up without a hitch. Then I started watching an intro video, to find my way around, and got stuck at the first step, resource explorer. It refuses to connect, so I get nothing. The help page: http://processors.wiki.ti.com/index.php/Troubleshooting_CCSv6#Resource_Explorer says to enter proxy settings, but I have no idea what that is expecting as I do not use a proxy, or just do not understand the terminology. Hopefully this will not end up being a problem.
  19. CCS7 Requirements

    This is frustrating. Tried installing yesterday, and after telling me some file could not be deleted and I needed to delete them manually before continuing twice, the files were gone when I looked, the installer locked up. Actually it locked up much of my computer, sound was x'd out and Windows explorer was crashing. I ended up just restarting the computer. I just tried again, and I got a firewall popup this time. I assume yesterdays problems were related, since it completed this time. Unfortunately the program does not start. The attached log file has this in it: !ENTRY org.eclipse.osgi 4 0 2017-06-18 17:01:46.339 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application "" could not be found in the registry. followed by a long list of available applications. Any Ideas on what I can do to fix this? 1497819705705.log
  20. CCS7 Requirements

    Well that was a bust, the two updates that are supposed to fix it both said they were no applicable to my computer. On the bright side, the one I found for CCS did eventually install, and when trying to fix updates I found how to search for them, and the other one is for Vista, so I assume I can just ignore it. Hopefully all is good now.
  21. CCS7 Requirements

    Thanks! I took a quick look,but this is going to take some time to do. Besides updates not working, I have not been able to shut down the machine, without turning it off, for just as long. Hopefully this will also fix other MS related problems I have. I will let you know how it all goes.
  22. Is it just me ?

    Well, we are in the same boat then, so maybe it is even ones out. I just started writing my current project, desktop app, for real. I used no documentation in the "breadboard" versions, so I am having to go back to the APIs and relearn what I did. Unfortunately it is all sub-classes, at this point, so I am not sure where I added functionality for one operation, or another. Since I do not remember what order I added stuff in, I do not Know if things that are not working just need other sub-classes fleshed out, or if I am doing something wrong. I just need to remember to go back and document my real code when I figure out what the problem was.
  23. Is it just me ?

    I know this is an older post, but it struck a "pet peeve" nerve. I recently went back to school, I had to learn how to use a calculator because they were not allowed in math class when I was in high school, and was surprised at how often people did not bother to even copy things by hand. When we had peer reviews, or otherwise were able to see each other's code, there was always at least one that was a direct c&p of code that did not even work. Had they copied it by hand, and read it in the process, they would have realized that it did not work. Keep in mind, these are simple school problems that have numerous examples on the internet. I have also seen, many times, where the code seems to have been intentionally written wrong, but someone who actually reads it will be able to fix it easily. When I have problems with code, I am often reluctant to ask questions because I do not want someone to just write it for me. I appreciate answers that simply point me in the right direction. On the other hand, with electronics, I tend to look for a more definitive answer. This is usually something like what size cap should I use, because I am trying to copy something that did not give the value, and I am just trying to get it to work, without ordering "one of each" or frying something. Personally, I appreciate everyone who tries to help me.
  24. Howdie

    Well, I just meant to lurk a bit, but since I had to sign up to read anything I might as well say hi and introduce myself. Unlike, probably most of you, I am mainly a software guy, at least in this stage of life. In several recent job searches, I found several MSP430 tags, so I thought I would look into it. I played with Arduino a little bit, which got me interested in electronics, but found it too simple, and unchallenging, not to mention not being able to just drop the chip in a project and go on to the next one. That is another thing that has my interest with the LP. I still have a lot of reading to do, to see if this is a direction I want to follow, so for now I will leave it there. Peace
  25. Howdie

    I like cloud based apps even less. Maybe if I lived someplace where internet was more reliable I would feel different? Although old, I have a desktop machine with four HDDs, so space is not an issue, except for MS apps that insist on being installed to the C drive. For that matter, I do not care that much for apps that come with installers either. All that said, I do realize that there are some advantages to web/cloud based apps. The main project I am currently working on is a good example. It is similar to https://partsbox.io/ , but is meant to be used on a thumb drive, if desired. I simply cannot offer the easy insertion of parts from a main database. The GUI Composer there looks interesting, but that is also something I would prefer to do myself, and once I get started, something I already planned to do. Eventually I hope to figure out how to add WIFi, or Bluetooth, so it would not need to be tethered to a computer to work.