Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks. The interactive guide turned out to be a bigger project than I planned, but I hope to reuse it for the 741 op amp. To generate the data for the guide, I ended up drawing boxes around all the components in Open Office, and then parsing the XML to extract the regions for each component and generate the JavaScript data.

The non-rectangular resistors were inconvenient to represent. Also, the 7805 has a lot of overlapping transistors (e.g. sharing the collector), which messed up my original system that assumed everything inside a box belonged to the box, so I ended up tagging each component with a different color. Maybe this is more than you wanted to know about the system :-)



You could use Inkscape for that -- it generates an SVG file that can be manipulated with javascript by adding a <script> tag. For an example, see: http://hausen.github.io/control.svg and http://hausen.github.io/control.js . No need to postprocess anything!


Very much appreciated. Was definitely my favorite part of an already excellent article. Please more.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: