A circuit simulator that runs while you draw, and checks itself against ngspice: 5,767 of 5,767 signals pass on 455 test circuits.
BetterSPICE 1.0.0 is a free, open-source SPICE simulator by Arwidcool, written in Rust and licensed AGPL 3.0. It runs in the browser or as a desktop app on Windows, macOS and Linux.
What caught my eye:
- Wires take the colour of their voltage, and values update while you edit
- A microcontroller part runs your program against its real pin voltages
- F5 gives a full transient, AC or DC analysis on the same schematic
- Monte Carlo, worst case, noise, pole-zero and loop gain
- Import from KiCad, LTspice, Altium, Multisim and EasyEDA
- 160,807 vendor models (desktop app) and 1,000 example circuits
The part I like most is the verification. "bspice verify" runs each test circuit through both engines and compares them point by point. Publishing the method is more convincing than a feature list.
Still, those are the project's own numbers. The real test is your circuit, with your vendor model.
LTspice has been the default for years. Would you switch?
https://t.co/9hXd7XVtp1
Some interesting developments coming to the @FreeCADNews ShowRoom addon, material presets ;)
Follow progress:
https://t.co/bDsWdDnAR3
Download
https://t.co/W0swNksGwf
Support:
https://t.co/B48E5gyM9n
What is the "geekiest" WW2 aviation engineering fact which made a real difference to the operational effectiveness of the most important fighter planes in the western theatre ?
There are a few, but here is one.
Fighters have to be fast, and that means maximum engine power, this is because the power needed to go faster goes up with speed, not linearly, not by the square but by the CUBE of the speed.
So going twice as fast means 2x2x2 more engine power (eight times).
To turn the propellor around with an engine crankshaft means forcing it to turn with massive gas pressures, and all of this force, is reacted into the bearings which allow the crankshaft to rotate.
If these bearings fail and a lower loading than those of your competitor, it actually doesnt even matter if you have a superfuel or a giant supercharger, because the bearings will break before you can even reach that power level.
All of this is important because (as you all know, obviously...) of dendrites.
Dendrites in metallurgy and columnar, tree like structures, and they grow like a super accelerated set of tree roots during the cooling and solidification of liquid metal.
The bearing in an engine is round, and the forces upon it are broadly by necessity directed from the inside radially outwards.
Engine bearings are actually very soft, because to survive they need to be very "slippery" which usually means putting lots of elements inside which are "slippery" like Lead and Tin, which are soft metals.
These are usually mixed with copper to provide some stonger reinforcement, and when this is done with tin the result is bronze, or lead-bronze when that is also added.
WW2 aeroplane engines usually use lead-bronze bearings, when these are poured as liquid metal into moulds to make the bearings, the copper forms dendrites which serve to act like strenghening ribs inside the soft lead/tin of the rest of the bearing.
The lead/tin stops the bearing getting torn up at its surface if it momentarily rubs against the crankshaft, and the copper stops the soft lead/tin from getting squished by the massive combustion loads.
British engineers developing the Merlin engine soon came up to mechanical barriers to increasing the power, as the 100/130 performance number fuel, allowed very high supercharger boost to be used. The bearings started giving out, the chaotically organized copper dendrites were getting squished by the combustion loads.
How could you solve this ?
The engineers thought, realised the loads go from the inside out and so they thought, what if we MAKE the dendrites directionally organize themselves ?
In that way, we could make them like trees ALWAYS be pointing AT the load, instead of being loaded in the middle.
The resulting bearing would be a bit like if you imagine a spring matress curved into a circle, the strong steel springs ALL point at the middle of the circle.
Dendrites GROW from where solidification starts, so they realised that DIRECTIONAL SOLIDIFICATION could make engine bearings which would allow RAF fighters to increase supercharger boost without smashing their bearings to pieces.
An automatic directional soldification machine was designed by Rolls-Royce, instead of just pouring the lead-bronze into a mould, and letting it cool, the mould was put on an automated platform, which raised and lowered, this slowly lowered the hot liquified bearing metal mould down into a water cooled chamber, with jets of water radially arranged to spray at the outside of the bearing case, this forced the bearing to start cooling at the outside and END cooling at the inside. This MADE all the strong copper dendrites organize themselves.
The resulting bearings were able to withstand much increased engine power and so allow the Merlin engine to be boosted to higher supercharger boost when fighting the Messerschmitts & Focke-Wulfs of the Luftwaffe.
I only realised this when writing THE SECRET HORSEPOWER RACE, when I sent an old F1 engine bearing engineer specialist micrographs of Merlin and Daimler-Benz engine bearings.
He replied, my god, the Merin ones are the same as our F1 bearings !
The German bearing maker in Berlin, had (very uncharacteristically for Germans) fallen behind in their metallurgy, and had NO directional solidifcation machine, the German bearings had scattered and chaotic dendrites, limiting the mechanical performance of their aero engines by causing incessant bearing problems.
This was partially solved by Junkers-Jumo, who developed a special lubrication system which has not one, not two but THREE features also found in todays Formula One engines, but thats another story !
All through the war, the engineers were developing their engines all the time, sometimes the ceiling was the fuel, and sometimes it was the engine, a chaotic game of leapfrog.
Metallurgy was never far from the core of all these developments.
Many of the British bearings were sold with "VP2" on the box, today if you order special bearings from Vandervell motorsport in Scotland (now Mahle), they still have "VP2" written on the crates...
(About 18months after the British, drawings in German development files started showing designs for bearing moulds, encased in a round cylinder... with a radially arranged set of water cooling jets, this was a massively hot topic, note that MY wartime drawing of the Merlin bearing microstructure is GERMAN)
Elektrik şebekesinin olmadığı Sibirya’nın en ücra köylerinde, 1950'lerde sadece bir gaz lambasıyla radyo çalıştırıldığını biliyor muydunuz?
Karşınızda Sovyetler Birliği’nin 1957’de seri ürettiği dâhiyane icat: TEGK-2-2 (ТЭГК-2-2) termoelektrik jeneratör.
Çalışma mantığı fizik kurallarının harika bir uygulamasıydı:
Alttaki gaz lambası yandığında ısısı ortadaki bacadan yukarı yükseliyor, çevresindeki o devasa alüminyum kanatçıklar ise oda havasıyla soğuk kalıyor. İki yarı iletken malzeme arasındaki bu sıcaklık farkı 'Seebeck' etkisiyle* doğrudan elektriğe dönüşüyor.
Ürettiği güç yalnızca 2-3 Watt civarında ama o dönemin vakum tüplü radyolarını (sağdaki Rusça "Anot" ve "Flaman" çıkışlarıyla) beslemeye fazlasıyla yetiyordu.
Tek bir gaz lambasıyla hem odayı aydınlatıyor hem biraz ısıtıyor hem de kutup istasyonlarından Sibirya kulübelerine kadar dünyadan haber alınmasını sağlıyordu.
Tam anlamıyla Soğuk Savaş döneminin şebekeden bağımsız (off-grid) mühendislik harikası!
*Seebeck etkisi, iki farklı iletken veya yarı iletken malzemenin uçları birleştirilip aralarında sıcaklık farkı oluşturulduğunda doğrudan elektrik gerilimi (potansiyel farkı) üretilmesi olayıdır. İlk kez 1821 yılında Thomas Johann Seebeck tarafından keşfedilmiştir.
#SovietTech #EngineeringHistory
this is mike payne, co-founder/creator of solidworks, PTC and spaceclaim
we discuss how pro/e was built, the history of CAD + computing, founding solidworks, kernels, dassault, fixing spatial, spaceclaim and direct modeling, text-to-cad, b-reps and the kernel wars, and CAD
if you’re young, ambitious, and want to build things that matter, get closer to hardcore engineering and robotics. you don’t need a sophisticated laboratory to get started. You need curiosity, basic hardware, and the willingness to experiment.
start with an STM32, a few sensors, and some BLDC motors. write your own device drivers, implement PID controllers, learn FreeRTOS, design PCBs, and experiment with sensor fusion. Get a 3D printer, learn CAD, design mechanical assemblies, and build your own actuators. Gradually move towards kinematics, dynamics, state estimation, motion planning, and autonomous systems. Learn by building and breaking things, not just watching tutorials.
knowing ROS and integrating off-the-shelf components alone isn’t a lasting moat. the real advantage comes from understanding electronics, mechanics, embedded systems, control theory, and computation at a deeper level.
don’t just learn how to program robots.
learn how to engineer them from first principles.
This picture of an oil pump, with the gears each having a tiny "pip" on one tooth, has broken Facebook, with 178 comments, including gems such as:
"They don’t have a purpose. They just machine reference when they were machine the teeths."
and the unforgettable:
"To hold oil"
You can simply infer the answer from first principles.
1) What is it, - a gear pair
2) How many teeth - identical
3) Is hunting ratio true/false - false
4) No hunting = every tooth face stays mated to its compatriot, and forms matching wear patterns
5) After (4) the two gears are in effect a "matched pair"
6) Reinstalling in = not same orientation = oil pump chucking out a whole load of tiny bits of metal as the new teeth bed in (again) and wearing out much faster as they are bedding in from an existing wear profile, not just manufacturing tolerance.
Gear designers TRY to design gear pairs to have a "hunting ratio", which means the teeth pairs in contact continually change, this ensures that no two pairs of teeth sit and wear into eachother, but instead that any discontinuities end up being averaged out in wear across all the gears, which means all the gears wear in approximately even terms, instead of a few not wearing at all, and a few with very bad wear which is matched only to the tooth next to it.
If you cant design that in, you need to ensure that the gears are never run ever again in another orientation.
Hence, the pips.
Even with them, you can still get it wrong as you dont know which side of the upper tooth the lower "pip" goes on, so take a photo of your pump before you dismantle it !
Anyway, thats the exciting story of "gear pips" for you, and if you have gears with the teeth count from gear 1 to 2 have no common factors (other than "1") you will find them bereft of pips.
10:10 = Not hunting, common factors are 1,2,5,10
10:20 = Not hunting, common factors are 1,2,5,10
10:11 = Hunting !, sole common factor = 1
13:17 = Hunting !, sole common factor = 1
So, when at maths classes in school they were prattling on about ANY pair of consectutive integers having no common factor other than 1...
It was actually really useful information, as that means any pair of gears where one has "1" more or less tooth than the other MUST be a hunting ratio gear pair (although obviously there are also others).
In practise this is often difficult to achieve in certain machine designs, where it may be impossible for packaging and operational reasons to achieve hunting ratios on all gears, but, its something all good designers have in the back of their heads.
Very cheap pumps like this will nearly always have non-hunting gears because it saves a huge amount of money tooling up to only make one gear shape when you need to make a couple of million of them.
Although, you then lose a tiny bit of that saving because you need to "pip" them all ... so that the oil goblins dont get upset of course.🤣
One of the most surprising things I found in my years of research into my first book, was something that was purely due to my relevant work experience in high performance piston engine design in F1 and other similar areas.
I have my own Python code which I wrote to calculate the frequency amplitude response of an engine to its inherent excitation frequencies as its crank speed increases.
Imagine my shock to open German reports from WW2, where the same thing was done with a slide rule.
These instead were computed by use of Holzer Tables, invented of course by a German Heinrich Holzer, in about 1920.
This is a very clever technique that requires only that the human being understands something of what he is trying to simulate, and makes a "good first guess", of the first natural frequency. Once achieved, its possible by iteration on a bit of paper to work out the frequency response of an engine, which may be a 10 or higher degree of freedom set of linear equations to solve.
Its at this stage you realise that people dont really get smarter, its just that solving the problems gets easier.
I do this today with a couple of thousand lines of code, although after seeing this, I went and made myself Holzer table in EXCEL, and then found I understood my own program better.
The "guess" which Holzer uses is that you need to make an intial approximation for the first vibration point, by understanding that the propellor is the dominant inertia, you can turn a whole engine into just two blobs in space (by adding together ALL the other bits of the engine which are "not the propeller"), and get an answer only 10% out for the first natural frequency.
This essentially prevents you from needing to solve a 10 degree of freedom matrix by hand !
(I can manage 3 with a pencil and paper).
As anyone with a passing interest in mechanical vibrations understands, a study like this is not a trivial matter.
Today it is only really improved upon by speed of the result, the engineers who did this in the 1940`s essentially knew everything of any use that I do now about the problem.
As I said to James May once, take an engineer from today, who is maybe giving up on his maths, and put him into a design office in 1940, "I would be lucky to be the tea boy" I told him.
In 1940, to be an engineer, you were pretty much an applied mathematician, put him in a time machine, to an office today, he`d be writing code in a few days, code is after all, just mathematics and logic.
Do not imagine progress is entirely "clever".
Incidentially for the WW2 ultra-nerd, this is the frequency response spectrum for the Daimler-Benz DB609 V16 aero engine !
Em 1982, David Crane enfiou num cartucho de 4 KB uma selva com 255 telas, 32 tesouros e 20 minutos de jogo.
O Atari 2600 tinha 128 bytes de RAM. Bytes.
O segredo do Pitfall! é que o mapa não estava guardado em lugar nenhum. A regra que gera tudo está na imagem.
В 1999 году вышла Quake III Arena. Пока одни разработчики пытались заставить компьютер не сдохнуть от трёх полигонов, ребята из id Software вытворяли с математикой такое, за что в приличном университете могли бы вызвать экзорциста.
Игра летала даже на довольно скромном железе. В 2005 году открыли её исходный код, и программисты всего мира полезли выяснять, какой именно договор разработчики подписали с дьяволом.
И обнаружили вот это:
i = 0x5f3759df - (i >> 1);
Причём в оригинальном коде рядом красовался комментарий:
// what the fuck?
То есть даже исходный код заранее сформулировал реакцию человека, который будет его читать.
Эта хреновина вычисляла обратный квадратный корень: 1/√x.
Казалось бы, возьми квадратный корень, раздели единицу на результат и не еби людям мозги.
Но в те времена процессоры выполняли такие операции относительно медленно. А в трёхмерной графике постоянно требуется нормализовать векторы. Освещение, отражения, геометрия. Таких вычислений может быть огромное количество.
И вот вместо того, чтобы честно считать квадратный корень, какой-то математический психопат решил взломать сам принцип хранения чисел в компьютере.
Число с плавающей точкой хранится в формате IEEE 754: знак, экспонента и мантисса. Если посмотреть на те же биты как на обычное целое число, внезапно обнаруживается, что полученное значение приблизительно пропорционально двоичному логарифму исходного числа.
А обратный квадратный корень в логарифмическом пространстве превращается в умножение на −0,5.
То есть вместо сложной математической операции можно сдвинуть биты вправо, вычесть результат из специально подобранной константы и получить довольно приличное приближение.
Константа эта:
0x5f3759df
Выглядит как пароль от Wi-Fi в психиатрической больнице, но за ней стоит вполне серьёзная математика.
Максимальная погрешность первоначального приближения составляет около 3,44%.
Многовато? Не вопрос.
Прихуячиваем одну итерацию метода Ньютона:
y = y * (1.5 - 0.5 * x * y * y);
И погрешность падает примерно до 0,175%.
Ещё одна итерация, и остаётся около 0,00046%.
Всё. Никаких квадратных корней. Никакого деления. Никакого шаманства с покупкой нового процессора.
Особенно забавно, что алгоритм появился задолго до Quake III. Его происхождение связывают с Грегом Уолшем и разработками конца 1980-х. А позднее математик Крис Ломонт нашёл чуть более точную магическую константу.
Люди буквально занимались научными исследованиями, выясняя, из какого именно шестнадцатеричного числа лучше вычитать половину другого числа, чтобы компьютер перестал тратить время на квадратный корень.
Сегодня процессоры имеют специальные аппаратные инструкции для подобных вычислений, поэтому этот трюк во многом утратил практическое преимущество.
Но сама инженерная философия прекрасна.
Когда компьютер не успевал считать, программисты оптимизировали математику.
Когда математика оказалась недостаточно быстрой, они полезли в устройство чисел.
Когда и этого оказалось недостаточно, они заставили представление числа в памяти выполнять часть вычислений.
А теперь представьте современное совещание по оптимизации программного обеспечения:
«Может, оптимизируем алгоритм?»
«Нахуя? У пользователей же 32 гигабайта оперативной памяти. Добавьте ещё один фреймворк».
Вот и вся разница между двумя эпохами программирования.
Eu achei o canal de um sujeito que está criando um 6502, o processador original do Apple II, usando FPGA, que é uma espécie de "hardware programável" só com portas lógicas. É um trabalho LINDO.
Os vídeos são super-didáticos, explicam os conceitos do zero, um mergulho fascinante em um campo que poucos dominam.
Só que o cara é Belga, não é fluente em inglês, então usa IA para fazer a narração e adaptar os textos em francês para inglês.
É o suficiente pra um monte de idiotas ensandecidos invadirem os comentários xingando o cara e chamando o canal de AI Slop.
Falaram até que se ele não sabe inglês, que poste só em francês pro público dele.
Eu tenho certeza que esses animais raivosos espumantes Anti-IA vão entrar para a história como antivaxxers e os histéricos que queriam proibir a eletricidade.
Aqui o canal, recomendo muito!
https://t.co/VwNnr01sN7
Estou lendo no Estadão essa reportagem e um trecho me chama a atenção:
"Morador do Tanque, o gestor ambiental Gabriel Tonobohn, de 39 anos, diz que a comunidade está apreensiva. Ele relata que na região não há tratamento de esgoto e os moradores usam poços escavados manualmente para ter água.
Em períodos de seca, diz, precisam recorrer a um caminhão-pipa. “A primeira e maior preocupação é a água. Com um data center que consome uma quantidade absurda de água, a gente fica muito mais preocupado.” "
Uma preocupação semelhante apareceu no início das obras do data center da Tiktok, no semiárido Ceará, região que é quase desértica pela falta de água.
Entendendo e respeito a preocupação das pessoas e concordo que tanto as empresas como as autoridades precisam responder essas preocupações mais rapidamente do que têm feito. Há o que se melhorar aí. Mas a reflexão que trago aqui é outra.
Garanto a vocês que ninguém que vai investir R$3 bilhões num data center vai construir ele primeiro e depois ligar na tomada e no cano para ver se há energia ou água depois de pronto. Todas as capacidades são previamente contratadas antes do primeiro tijolo ser erguido.
O fato de grandes data centers serem construídos onde já há falta de água é uma prova empírica que esses empreendimentos NÃO consomem água como ocorre nos EUA e é propagandeado como se fosse verdade no Brasil.
Pois se faltaria água para residências, faltara água para o data center também. Eles seriam desligados, prejuízo enorme para seus donos e clientes.
Quanto a energia, a escolha da cidade e do terreno é feita justamente onde o Operador Nacional do Sistema Elétrico (ONS) confirma por escrito haver energia disponível para compra no atacado. É o caso de Atibaia/SP que a reportagem se refere.
Diferentemente dos EUA onde há falta de energia, no Brasil há sobra de energia variável e novos compradores dela como os data centers poderão reduzir a tarifa da energia para o usuário residencial por custear nova geração de energia perene.
O Brasil possui uma rede nacional de distribuição de energia e os EUA não têm. Por lá a energia precisa ser consumida no estado onde é gerada ou num estado vizinho.
Isso faz com que muitos data centers estadunidenses usem geradores de energia a gás e a diesel no próprio imóvel. As queixas de ruído atrapalhando famílias é dessa geração de energia, não do data center em si, com seus servidores e aparelhos de arrefecimento.
No Brasil com a rede nacional unificada, os data centers não produzem a própria energia in loco, o que faz com que NÃO gerem ruído audível do lado de fora como ocorre nos EUA.
Brasil e EUA estão tão opostos em hemisférios quanto no tema de data center. Todos os problemas que essa indústria causa por lá já foram resolvidos com maestria por aqui.
Explico esses e outros detalhes no vídeo a seguir.
Uma coisa interessante é descobrir o que os especialistas escolhem para usar na própria vida.
Por exemplo:
- Qual carro um mecânico compraria?
- Qual marca de mala um comissário de bordo prefere?
- Quais eletrodomésticos um técnico de manutenção escolheria para casa?
Afinal, ninguém melhor do que quem trabalha com determinado produto para saber o que realmente vale a pena.
Qual é sua profissão e o que você usa no dia a dia que recomendaria de olhos fechados?