🌉 bridged from @dragontamer@lemmy.world by Tidepool
dragontamer
@dragontamer.lemmy.world.ap.tdpl.io
FX Fighter Kurumi-chan (financial trading anime) predicts the stock-market crash
The tech-market has been in a bit of a downturn since October 1st, which coincides perfectly with the release of the financial trading anime "FX Fighter Kurumi-chan"
Circuit Discussion: +0.01V with a Wildar+Peaking current mirror and an OpAmp
I have difficulty in imagining the ideal audience for this discussion. An absolute beginner might not know how to use OpAmps yet, while a more advanced electronic engineer will probably find this post too elementary for them. Nonetheless, I set off with the goal of adding 0.01V to a part of my circuit, and have decided that this particular configuration is ideal. So I'll discuss my reasoning and hopefully other engineers here can comment.
Motivation
I'm configuring a constant current sink (0mA through 500mA) when I started to calculate some "worst case errors". Lets assume the input is varying somewhere between 1V to 5V, and I'd like to program a DAC + Constant Current to subtract a (configurable) voltage off of the input. image For the beginners: the OpAmp sets the voltage at R1 very accurately to the DAC_Output voltage. Because R1 is connected to Ground, this means we very accurately control the current flowing down through R1 (with the NMOS in voltage-follower configuration, the voltage at the source follows the voltage at the gate). Because R2 is connected on this circuit, the current configured at R1 is innately the same as the current flowing through R2. And now we have an accurate subtraction operation configured with the DAC Looks straightforward, except for one thing. OpAmps like the MCP6006 have an unpredictable Voffset of 0.003V. Across my circuit, there's three OpAmps this calculation goes through, so I'd like to add 0.009V (aka: three times the Voffset) so that I have enough "wiggleroom" for the DAC to trim-away all possible errors.
Adjustment Circuit
I did switch to MINDI as Microchip's MCP6006 OpAmp is only accurately simulated in MINDI. image As the title implies, its just a combination Wildar+Peaking current mirror to generate a constant current, and then an OpAmp to subtract 0.01V from the feedback (which causes the output to "negate" and become +0.01V).
Basic Current Mirrors
https://wiki.analog.com/university/courses/electronics/text/chapter-11 Analog.com has a great wiki which goes over the Wildar + Peaking current mirror. Although they call it the "Stabilized Current Source". The original current mirror is as follows: image A matched-pair BJT serves as the basis. (such as the BCM847B by diotec, diodes or many other manufacturers. The "M" is important with guaranteed matching specs). The left transistor converts a current into a voltage... specifically the exact voltage that is associated to the current. Ex: 500uA current probably turns into 0.53V or so, it all depends on temperature and manufacturing, and Beta... but guess what? The two transistors are guaranteed to match (within 0.002V base offset, and within 10% Beta). So when you take this voltage from the left transistor, and apply it to the right transistor, the right transistor now "copies" or "mirrors" the current. IE: the right transistor converts 0.53V (or whatever it was) back into 500uA or so. This switching from Current input -> Voltage in the middle -> Current output is possible only because BCM847B has guaranteed matching specs. Alternatively, you can manually search through a pile of transistors for matching Vbe and/or Hfe/Beta (and in the 80s, people would manually measure and search for matching specs out of a box).
Peaking Current
image Ah, but I don't have a basic current mirror in my circuit, do I? This here is the "Peaking Current Mirror". Analog.com's wiki has a reasonable explanation, but this other article has a better explanation that worked for me: https://www.edn.com/peaking-current-source-has-high-rejection/ The conversion from Current -> Voltage is far more complex with the "peaking" circuit. The gist is that the additional resistor (R2 in this case) serves as negative feedback against VCC. As VCC increases, Q1 will pull pull Vce down, towards 0V (ground). And as VCC decreases, that also pulls Vce down towards 0V (because VCC going down is uhhh... just voltage dropping). These two dropping effects create a "peak" at exactly Vcb == 0.026 Volts (assuming room temperature of 25C). I've configured the 10k resistor and 59 ohm resistor such that this peak occurs around 5V-input, the operating point of my circuit. Now why do this? Well, this makes Q1's output voltage more independent of VCC. Or in other words, this "creates" Power-supply rejection. If VCC has noise or other regulation issues, this creates a "Zero-gain amplifier" effect where changes to VCC "refuse" to propagate down to the rest of my circuit... or at least are mitigated slightly at this juncture. For example: a classic current mirror would output 50% more current as VCC moves from 4V to 6V. However, in this improved "peaking" circuit, the circuit barely changes between 4V and 6V. image Green is a traditional current mirror between 4V and 6V. Notice how its exactly proportional to the input voltage!! Red is the "peaking" current mirror between 4V and 6V. By using negative-feedback to force the Vcb voltage down (as VCC goes up), the red line is far more stable against changes to VCC. In the EDN article, they run the current through TWO of these "peaking" circuits to double up on the stability. But one-layer of stability is likely sufficient for my purposes.
Wildar Current Source
Wildar is the legendary electrical engineer who designed the 741 OpAmp. As it turns out, Wildar's primary "move", the addition of one more resistor on the emitter, is compatible with the "Peaking" current source from before. So why not combine the two techniques? https://en.wikipedia.org/wiki/Widlar_current_source image The Wildar Current Source has numerous advantages. The main tidbit is that it helps negate the Early Voltage in BJTs (making our current-output more resilient against changes in output voltage). image Note the scale. All of this graph is zoomed in between 9uA and 10.5uA. So the "original" current mirror is still quite good at current regulation (only a 10% difference of current despite the voltage swinging from 0 through 10 volts). However, we can improve upon this current regulation dramatically by adding the resistor turning us into a Wildar Current Source. The regulation tightens much more, with a minimum 9.78uA current to 10.03uA (only a 2.5% swing). This is because the emitter-resistor is hampering the "Early Effect" (discovered by Dr. Early), which kinda-sorta makes the BJT look like a non-ideal current source. Note: a Wilson current mirror would work even better, but that requires 1.2V minimum. My circuit actually goes down to 0.9V, which is much too low for the Wilson current mirror. Wildar Current sources also have additional benefits that aren't too relevant. First they require much smaller resistors, which is a benefit in ICs like the 741 OpAmp (even today large resistors are difficult to build on modern IC processes. Small resistors are just easier to make more consistent). Wildar Current Mirrors also don't need as tight matching between Beta/Hfe or Vbe between the two transistors. The resistors help stabilize the circuit vs changing manufacturing tolerances of the transistors. Finally, the Wildar Current Source actually makes the "peaking" circuit better at rejecting input voltage swings... a bit of unexpected synergy between these two designs!
Questions? Comments?
Its a bit of a stream of consciousness but I hope you all enjoyed this breakdown. Please let me know if I forgot something or if something is unclear. All in all, a relatively high quality constant current sink can be implemented with just three resistors and one matched-pair BJT, for a total of 5 components on your PCB. Or alternatively, you flip it all around and use PNP Transistors to create a constant current source. Hopefully you analog engineers out there can use this technique to build something cool. Voltage regulators are commonly solved with dedicated ICs today. But current sources are actually quite easy to make yourself out of just a few resistors and a matched-pair transistor. The standard current mirror is much easier to think about (configured with basically a singular resistor, or even with "nothing" if you have a signal already in the form of some kind of current-output). However, the "peaking" circuit improves input voltage rejection with only one additional resistor, while the "Wildar" circuit improves output impedance with another additional resistor. The downside is ... you need to do far more math and simulations to "set" the output current correctly. A lot more math (the emitter resistor on the output transistor has a logarithm relationship to the input... and the two input resistors to the peaking circuit have non-intuitive calculations). But anyone going into this hobby is probably not afraid of a few logarithms or math subjects, right?
Microchip June 2026: Released a new 8-bit AVR LA line
AVR is one of my favorite chips as a hobbyist. 8-bits, manuals in the less than 500 pages region (very small compared to Cortex-M0+ which are closer to the 1000 or 2000 page long regions if we include instruction sets and other details), etc. etc. So I'm happy to see Microchip continue to support simpler 8-bit chips for those who need them.
For those looking to use this chip exactly: it seems like AVR LA specializes in low-cost, low-power, and capacitive touch. Most components have been stripped out, the ADC is only 10-bits, there's no more dual power supply (like AVR DD, DB, or DA), there's no special features like op-amps (AVR DB), or programmable gain differential ADCs (like AVR EA or EB).
You do get event system, CCLs (AVR's feature of LUTs, functioning as useful "glue logic" that can implement a few simple XOR, AND, OR, NOT gates for those who need simple glue), RTC, and PTC (aka: Peripheral Touch Controller, Microchip's system of building capacitive touch).
At 1.62V minimum (and up to 5.5V maximum), this is seemingly the lowest voltage I've seen from AVR lines. For anyone with a buck or boost converter in their designs, this should lower power usage a fair bit over the 1.8V previous minimums.
Finally, the 5k unit pricing is around 50-cents or so. This is the cheapest AVR 8-bit you can buy, if anyone were doing a large scale mass manufacturing line. But for most hobbyistss, I don't believe we can sufficiently tell the difference between 50c chips and $2.00 chips.
So its very barebones outside of capacitive touch. Still, this shows a commitment from Microchip to continue to support AVR chips and their ecosystem. I would recommend beginners use the AVR DB instead (which come with 3x OpAmps and far more features), unless you really want a barebones capacitive touch controller.
ww1.microchip.com
Meta: Soft Migration to teslamotors@lemmy.zip?
I've been informed of an attempt to consolidate all the Tesla communities into teslamotors@lemmy.zip (for Lemmy.world users, you can still access it here: https://lemmy.world/c/teslamotors@lemmy.zip). I'm interested in hearing the community's thoughts on this. Consolidation is the name-of-the-game right now in Lemmy, we just aren't big enough to have critical mass especially as tons of different communities are split off like this. /r/RealTesla from Reddit was necessary in the 2010s where Elon Musk was running popular and it was impossible to get a critical word in about bad Tesla service, the lies from Tesla's sales about their fuel gauges or even have awareness of how explosive Li-ion batteries are. Today, its becoming clear that Tesla Lies (led by Elon Musk) is the norm. And we can see that today a "general Lemmy" community about Tesla that its possible to be critical about Tesla even on a Tesla-focused community. ——— That being said: I'm not for closing down /c/RealTesla. We need a "signpost" for the /r/RealTesla Redditors who are beginning to branch off to Lemmy. But I'm considering leaving a signpost to teslamotors@lemmy.zip, especially since they're more active at the moment about Tesla news. I'll try to keep this community here active as a lifeboat for lost Redditors however. What does everyone else think?
Tesla Protests Topic (March 1st, 2025)
• NYC Lower Manhattan: https://www.reddit.com/r/MicromobilityNYC/ • Tucson Arizona: https://bsky.app/profile/thetnholler.bsky.social/post/3lje4s23tkk2y • https://apnews.com/article/elon-musk-tesla-protests-doge-3b3eba9313074ccf8e959a92486d900f Just a few protests of note happening around the country. I know there's more but these are the instances I was aware of.
Tesla Takedown protest website
Tesla protests are beginning to get more organized.
www.teslatakedown.com
Saving Elon Musk's "Roman Salute" here
image This NEEDS to be saved. People will forget if we don't save this.
It’s Impossible to Get Rid of a Tesla Cybertruck. I Want to Cut My Losses and Move On, but I Can't Give This Thing Away. I’ve Lost So Much Money Already; Help.
Efficiency test of my 2024 Prius Prime: Gasoline vs Electricity in my first week.
cross-posted from: https://lemmy.world/post/22892955
The Prius Prime is a dual fuel vehicle, able to run 100% on Electric, or 100% on gasoline, or a computerized blend in-between. This presents me a great opportunity to be able to do a direct comparison with the same car of an EV engine vs an ICE engine. • Toyota computer claims 3.2mi-per-kwhr. • Kill-a-watt (https://en.wikipedia.org/wiki/Kill_A_Watt) claims 2.2mi-per-kwhr. • Additional 1.5% losses should be assumed in the wires if you wish. (120V drops down to 118V during charging, meaning 2V of the energy was lost due to the resistance of my home's wires). • Level 1 charger at home (known to be less efficient). • Toyota computer claims 53miles-per-gallon (American Gallon). • I have not independently verified the gallon usage of my car. • 295 miles driven total, sometimes EV, sometimes Gasoline, sometimes both. • 30F to 40F (-1C to 4.5C) in my area this past week. • Winter-blend fuel. • 12.5miles per $electricity-dollar (17.1c / kw-hr home charging costs) • 17.1 miles per $gasoline-dollar ($3.10 per gallon last fillup). If anyone has questions about my tests. The main takeaway is that L1 charging is so low in efficiency that gasoline in my area is cheaper than electricity. Obviously the price of gasoline and electricity varies significantly area-to-area, so feel free to use my numbers to calculate / simulate the costs in your area. There is also substantial losses of efficiency due to cold weather, that is well acknowledged by the EV community. The Prius Prime (and most other EVs) will turn on a heater to keep the battery conditioned in the winter, spending precious electricity on battery-conditioning rather than miles. Gasoline engines do not have this problem and remain as efficient in the winter.
Tesla tells workers on Cybertruck line no 'need to report to work' for the next three days
3 recent Piedmont High graduates killed, 1 injured in fiery Cybertruck crash: source
CNBC: Why Jeep And Dodge’s Parent Company Stellantis Is Struggling
youtube.com
TL;DR: Stellantis vehicles aren't selling. But its still nice to get a few interviews from a dealership, from CEOs, and other parties involved in Stellantis and talk about what they think is the problem.
Its a longer-form 15-minute video, but that's a good thing. (If anything, that's short for what they're trying to cover).
This isn't Tesla related directly, but overall car economics / competition is on topic around here. And Stellantis is involved in many EVs, PHEVs, and Hybrids that are cross-shopped with Tesla anyway.
www.youtube.com
Tesla's Hyped Robotaxi Event Was a Massive "Disappointment," Investors Say
Stock down 7.5% today after 10/10 Robotaxi event. Elon arrives nearly an hour late and showed off concepts of a plan of cybercab and cyberbus.
futurism.com
Fisker EVs can’t be ported to new server
Not Tesla but Fisker EVa are famously connected and techno-enabled.
As Fisker goes through this bankruptcy, we now have some data points on how always connected cars behave as their servers get shutdown. It's uhhhhh, not looking good.
arstechnica.com
GEICO is Terminating Insurance Coverage of Tesla Cybertrucks, Says “This Type of Vehicle Doesn't Meet Our Underwriting Guidelines”
Tesla Reports a Fifth Cybertruck Recall Within a Year of Launch
Family’s Tesla catches fire in the garage during Helene, destroying their home
Elon Musk is staking Tesla's very future on his Oct. 10 robotaxi unveil
Elon Musk once described his past immigration status as a ‘gray area’
The title to this article is too long. I slightly edited it down slightly bending Rule5.
Still, Elon Musk and Kimball Musk both are immigrants who have likely bent or even broken immigration law as they came here to USA.
www.cnn.com
Excellent Mastodon post: why does heating an XBox controller fix it? MLCC Capacitor chemistry, physics, heat infodump.