dcsimg
A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Electronics

  1. #1
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    Ok, I know the basics (volts, amps, various components, electrons flow out of -ve)

    I started having a go at a little electronic sim, it's very simple right now with quite a few flaws like current doesn't split, it doesn't use relistic values but any way,

    How in real life do the components only work when they are in a complete dircuit? I've found that programming things the way they do in real life usually works best.

    (Oh, and here's my shoddy swf: http://ed.gamegeared.com/flash/circuit.swf )

    Thanks!

  2. #2
    madskool.wordpress.com brutfood's Avatar
    Join Date
    Apr 2002
    Posts
    469
    Current only flows trough a component where there is a potential difference.

    I think to write this sim, you need to know ohms law:-

    V = I * R so I = V / R R = V / I

    Going back to your original question, if you have an open circuit, Resistance (R) is infinate (not futile), and so Current (I)=0.

    If you start getting into splitting currents, then this can be solved using Maxwells Circulating Currents.

    Other tips: Back in my day, diodes created a 0.6 to 0.7 volt drop (when put the right way round).

  3. #3
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    Thanks.. I suppose I'll have to send some sort of internal ping around, and see if it's a complete circuit.

  4. #4
    Senior Member
    Join Date
    Mar 2001
    Posts
    127
    And don't forget Kirchoff's Law!!!
    hex

  5. #5
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    Now your just taunting me. What is it?

  6. #6
    madskool.wordpress.com brutfood's Avatar
    Join Date
    Apr 2002
    Posts
    469
    Indeed it may be useful to you.

    http://library.wolfram.co.uk/examples/kcl/

  7. #7
    incredibulus-actionscriptum magnetos's Avatar
    Join Date
    May 2001
    Posts
    2,160
    Kirchoff's Law!!!??

    let me see if i remember right
    Kirchoff's Law states that the sum of all the currents entering a node is equal to the sum of the currents exiting
    the node

    and the value of I in the node itself is 0
    am i right???

    ps math is my enemy... please help me understand


  8. #8
    Senior Member
    Join Date
    Mar 2001
    Posts
    127
    You are indeed correct!

  9. #9
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    Show off. I already know that, not just it's name. Well, I bet you can't recite Robert Stanex's Special case Tennis rules.

  10. #10
    madskool.wordpress.com brutfood's Avatar
    Join Date
    Apr 2002
    Posts
    469
    Originally posted by Ed Mack
    Robert Stanex's Special case Tennis rules.
    I tried finding that using Sherlock. It gave me a site in the Czeck republic- that I was refused access to browse.

    Maths and theorem names can get terribly abstract and esoteric. I always need to visualise what is actually going on.

    Electricity is about the flow of electrons. Voltage is about a potential difference in the number of electrons in one place and another. And where you have a difference in electron pressure - electrons will attempt to flow to equalise this.

    In the early days of study into electricity, they has no way of knowing which way this electron flow was happening. They had a 50% chance of guessing right - and they guessed wrong. So current flows the opposite way to electrons.

    If you were to sit at any point in the circuit, and count the electrons as they passed. Once you counted up to 1.6 x 10 to the power 19 electrons. This is called one 'Coulomb'. If one Coulomb flows per second - then you have one Ampere of current. (going the opposite way).

    Kirchoff's law makes sense. If you sit at a node counting electrons - the number flowing in will equal the number flowing out. They're not going to sit around to take a break.

    Of course, no post in this thread would be complete without someone introducing and naming a new theory or principle.

    Earlier I gave a URL to an example of using Kirchoff's law to solve the currents in practical example. The calculation involved solving a matices equation.

    A good way to do this, if you were coding it in Actionscript, would be to use:-

    'Gaussian Elimination'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center