Sonntag, 11. März 2012

Panelmeter Teil #2: Opamp Magic

Prolog

Und nun der zweite Teil des Panelmeter-Projektes. Das Problem war ja, dass das Meter seine eigene Versorgungsspannung nicht messen kann und auch in Schaltungen, wo die zu messende Spannung einen gemeinsamen Bezugspunkt mit der Versorgungsspannung hat. Berichte denenzufolge sich das Panelmeter in Rauch auflöst, wenn man es versucht, halte ich für übertrieben ;-). Ich konnte (bis jetzt) das Ding nicht kaputt kriegen...

Jetzt stellt sich die Frage: warum ist das eigentlich so? Ich habe also ein bißchen im Internet recherchiert und auch ein paar eigeneMessungen gemacht, und der Grund ist folgender: die Eingänge des Panelmeters (IN und COM) liegen +2.9V bzw. +5.8V (beachte: ohne, dass eine zu messende Spannung angelegt ist) über dem Beszugspunkt der Spannungsversorgung GND. Es ist also eine Skalierung und Verschiebung der Spannungsniveaus nötig, wenn man in einer "common ground"-Konfiguration arbeiten möchte.

Ich habe insgesamt drei verschiedene Lösungen für dieses Problem gefunden. Ich stelle heute die erste der drei vor, die mit Operationsverstärkern arbeitet. Ich glaube, mittlerweile verstehe ich sie einigermaßen und ich werde mein Bestes tun, um sie zu erklären. Bin für euren Input und Korrekturen sehr dankbar.

Die erste Lösung: bloß keine Differenzen...

Das ist also die geheimnisvolle Schaltung, die mir zu anfangs aufgrund meiner noch wachsenden Elektronikerfahrung (bin bei Winfield/Hill erst im Kapitel 2) großes Kopfzerbrechen bereitet hat. Aber na gut, ich versuch mal zu erklären was ungefähr passiert (zumindest was ich glaube, dass passiert). Um es vorwegzunehmen: die Schaltung scheint zu funktionieren, wobei noch zusätzliche Maßnahmen nötig sind...

Also los gehts: links kommt die Versorgungsspannung (z.B. von der Batterie) rein. Dann geht das ganze in einen Differenzverstärker (grauer Kasten), wobei aber der COM-Level am Panelmeter sozusagen als "virtuelle Masse" reinspielt. Weiters wird der COM-Level über einen Opamp-Puffer (Spannungsfolger) eingespeist, sodass es keine Rückwirkung gibt. Die beiden Kapazitäten sind glaub ich nur dazu da, um Schwingneigung des Opamps zu unterdrücken.

Ok, also hab ichs aufgebaut und gemesse, was es macht.Ich bekomme am Ausgang des Opamps +8V und an IN ca. +6.4V, also eine Differenz zwischen IN und COM von 0.695V. Hmmm. Die Schaltung macht also eine Skalierung und Levelshifting, aber noch nicht so ganz korrekt von den Werten her.Irgendwie scheint die Ausgangsspannung schon proportial zur Versorgungsspannung zu sein, aber auf jeden Fall eine Größenordnung zu groß für den 200mV Inputrange des Meters. Kleiner Trost: hab die Schaltung mit iCircuit simuliert und komme auf die gleichen Ergebnisse.

Ich hab mal die Ausgangsspannung am Meter gemessen, wenn ich die Eingangsspannung zwischen 8V und 12V variiere. Leider tut sich kaum was. Nur die letzte Stelle ändert sich leicht von 0.695V bei 8V auf 0.692V bei 12V. Mist.

Ich vermute, dass im Schaltplan ein Fehler vorliegt, und statt der 33k nur 3.3k Widerstände rein müssen (um den Faktor 10 wegzukriegen). Wenn ich das mit iCircuit ausprobiere bekomme ich folgendes:

Vs =   8.0V --> IN/COM = 0.08V
Vs =   8.5V --> IN/COM = 0.085V
Vs =   9.0V --> IN/COM = 0.09V
Vs = 12.0V --> IN/COM = 0.12V

Das sieht ja schon ganz gut aus. Die Ausgangsspannung ändert sich exakt um einen Faktor 100 kleiner im Zielrange des Meters. Perfekt. Gleich mal in der echten Schaltung ausprobieren.

Oje... in der Theroie alles super, aber einmal mehr zeigt sich, dass sich ein realer Opamp anders verhält als ein idealer... In der echten Schaltung erhalte ich nur 0.4mV - es tut sich also gar nichts am Ausgang. Na dann lass ich es jetzt mal und versuche was anderes. Vielleicht kann ich ja später nochmal was debuggen.

39 Kommentare:

  1. Hallo Christian,
    wie der Zufall will, hab ich gestern ebenfalls mit einem TL072 gespielt. Beschäftige mich mit einem Weg den Strom im Akku-Controller möglichst einfach zu messen (bald mehr davon). Hast Du den TL072 symmetrisch versorgt? Meine Schaltung funktionierte auch nicht, dann hab ich den TL072 mit +/-5V versorgt und alles war gut. Weiter hab ich dann den Pin-gleichen LM2904 ausprobiert und mit dem klappte es dann auch mit +5V/0V.

    AntwortenLöschen
    Antworten
    1. Hallo Harald, danke für den Tip! Hab gleich wieder meine Versandkostenflatrate bei Völkner missbraucht um mir ein paar lm2904 zu holen. In der vorliegenden Schaltung geht leider nur single supply Versorgung. Wüsste nicht wie man das sonst machen könnte. Hätte aber so funktionieren sollen (zumindest laut Vorlage aus dem Internet).

      Löschen
  2. Ach ja, ich habe übrigens schon einige Panelmeter gehimmelt. Ist schon lange her (>10 Jahre), hatte damals noch kein Internet und einfach probiert. Steht ja nirgends, dass Common-Ground nicht geht. Sobald ich die zu messende Spannung anlegte haben die Panelmeter "out-of-Range" angezeigt und sich einige Sekunden später verabschiedet.
    Hatte das alles nicht verstanden und die Dinger als defekt zurückgeschickt. Wurden übrigens ersetzt - war mir aber wurscht, weil ich Zeigerinstrumente vom Flohmarkt einsetzte. Die tun wenigstens.

    AntwortenLöschen
    Antworten
    1. Ich hab auch schon günstige Zeigerinstrumente auf meinem Merkzettel bei Pollin ;-). Aber noch geb ich die Panelmeter niht auf.

      Löschen
  3. Sites like yours is important to be read and shared because it provides wide range of information. Keep it up. Anyhow, click this site if you want to have a good time 바카라사이트

    AntwortenLöschen
  4. I like this website so much, saved to favorites . 먹튀

    AntwortenLöschen
  5. Acknowledges for paper such a beneficial composition, I stumbled beside your blog besides decipher a limited announce. I want your technique of inscription. 파워볼사이트

    AntwortenLöschen
  6. 안녕하세요 저는 여러분의 블로그를 찾아서 정말 기쁩니다. 실수로 여러분을 찾았습니다. Google에서 다른 것을보고있는 동안 어쨌든 저는 지금 여기에 있으며 엄청난 게시물과 모든 재미있는 웹 사이트에 감사하다고 말할 수 있습니다. 계속해서 좋은 일을 해주세요. 먹튀검증

    AntwortenLöschen
  7. Very good content, really interesting and really helpful, thank you 먹튀검증

    AntwortenLöschen
  8. This Post is providing valuable and unique information; I know that you take a time and effort to make a awesome article 먹튀검증

    AntwortenLöschen
  9. I just want to let you know that I just check out your site and I find it very interesting and informative 먹튀폴리스

    AntwortenLöschen
  10. We are manufacturers and exporters of high quality Sportswear & Textile products. Our company produces custom designs and sizes as per our customer’s requirements. For biker jacket visit! 메이저놀이터

    AntwortenLöschen
  11. Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it 토토사이트

    AntwortenLöschen
  12. This is often a great inspiring article.I am beautiful much satisfied together with your great work.You put truly exceptionally accommodating data. Keep it up. Keep blogging. Looking to perusing your another post 먹튀검증

    AntwortenLöschen
  13. Thanks for a wonderful in addition to enlightening post We truly value all the effort which went into creating. 안전놀이터

    AntwortenLöschen
  14. Your site is truly cool and this is an extraordinary moving article 먹튀검증커뮤니티

    AntwortenLöschen
  15. wow this saintly however ,I love your enter plus nice pics might be part personss negative love being defrent mind total poeple 먹튀검증

    AntwortenLöschen
  16. We read the content space to cover the idea move from the power zone. I allow you to response the content with the help of new added portions. I love to follow it 먹튀검증

    AntwortenLöschen
  17. Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitor 토토사이트

    AntwortenLöschen
  18. Thank you for sharing your info. I really appreciate your efforts and Thanks a lot for sharing a piece of wonderful information which I am looking for a longer period of time 먹튀검증

    AntwortenLöschen
  19. Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. 먹튀검증

    AntwortenLöschen
  20. I came to your website for the first time I like your website very much such nice information providing much such 슈어맨

    AntwortenLöschen
  21. This article is an appealing wealth of informative data that is interesting and well-written 먹튀폴리스

    AntwortenLöschen
  22. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your post 온라인카지노

    AntwortenLöschen
  23. This was really an interesting topic and I kinda agree with what you have mentioned here!Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subjec 토토사이트

    AntwortenLöschen
  24. Hi, I appreciate your speculating as it attracts people’s attention and makes this topic discussable. 토토사이트

    AntwortenLöschen
  25. Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. resin patio set

    AntwortenLöschen
  26. Hi! This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job! Courtier immobilier Saint-Lambert

    AntwortenLöschen
  27. Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. courtier immobilier gatineau

    AntwortenLöschen
  28. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here calculer rentabilité immeuble revenu

    AntwortenLöschen
  29. Thankyou for this wondrous post, I am glad I observed this website on yahoo. 먹튀검증

    AntwortenLöschen
  30. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. 먹튀검증

    AntwortenLöschen
  31.  I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. courtier immobilier gatineau

    AntwortenLöschen
  32. "Hello, I read your blogs like every week. Your humoristic style is awesome, keep it up!" Appreciation to my father who shared with me concerning this web site, this weblog is genuinely remarkable. I am genuinely pleased to glance at this web site posts which consists of lots of helpful data, thanks for providing these information Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Once I initially commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any method you can take away me from that service? Thanks! 토디즈

    AntwortenLöschen
  33. I think this is an informative post and it is very useful and knowledgeable. Therefore, I would like to thank you for he efforts you have made in writing this article. Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. A fantastic post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much, Wonderful illustrated information. I thank you about that. No doubt it will be very useful for my future projects. I’m new to this field and this is the most incredible post I’ve ever read about. Thanks so much for your good work. 꽁머니

    AntwortenLöschen
  34. found nearly all men and women will go along with with your blog. Thank you for sharing this precious content material. In my view, if all sonus complete site owners and bloggers made exact content as you probably did, the internet may be loads greater beneficial than ever earlier than. Thank you for sharing. Suitable publish. Thank you for sharing with us. I just cherished your way of presentation. I enjoyed analyzing this . Thanks for sharing and hold writing. I suppose this is an informative put up and it's far very beneficial and informed. Therefore, i would like to thanks for the efforts you've got made in writing this newsletter. Pretty accurate submit. I just stumbled upon your blog and wanted to say that i've without a doubt enjoyed reading your weblog posts. Any manner i'll be subscribing to your feed and that i desire you submit once more soon. Huge thank you for the useful data. I would love to mention that this blog definitely convinced me to do it! Thank you, excellent post 토토사이트

    AntwortenLöschen
  35. Thanks for all of the labor on this site. My mother take interest in conducting research and it’s simple to grasp why. Many of us hear all regarding the lively mode you deliver great items on the website and as well as attract participation from others on the matter then my princess is in fact becoming educated a lot. Take advantage of the rest of the new year. You have been carrying out a remarkable job. You really should experience a tournament first of the finest blogs on the internet. I’m going to suggest this website! Keep up the great piece of work, I read few content on this website and I think that your blog is real interesting and contains lots of wonderful info. 먹튀사이트

    AntwortenLöschen
  36. i read your article its good for humanity thanks for sharing this its very informative . This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I’ll be back. Awesome and interesting article. Great things you’ve always shared with us. Thanks. Just continue composing this kind of post. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can’t help but wonder, what about the other side? !!!!!!Thanks . Thankyou for taking the time to write this it was a great read. Good job! 에볼루션바카라

    AntwortenLöschen