Almost hardware
-
This is an almost hardware question. I'm working on a circut simulator. The problem is that I don't know how to implement the ground. Think like this: - Everything, cords, batteries, diods, are objects. (I program in C#, and all objects is childs to a special class called item) - The negative pole of a battery is giving output -100, wich could be called a low pressure. - The positive pole of a battery is giving output 100, wich could be called a high pressure. - Cords doesn't have any data, wich means if you want output from a cord it returns the sum of what it is conneced to. Again, How do I make implement ground? Niklas Ulvinge aka IDK
-
This is an almost hardware question. I'm working on a circut simulator. The problem is that I don't know how to implement the ground. Think like this: - Everything, cords, batteries, diods, are objects. (I program in C#, and all objects is childs to a special class called item) - The negative pole of a battery is giving output -100, wich could be called a low pressure. - The positive pole of a battery is giving output 100, wich could be called a high pressure. - Cords doesn't have any data, wich means if you want output from a cord it returns the sum of what it is conneced to. Again, How do I make implement ground? Niklas Ulvinge aka IDK
It probably wouldn't be a bad idea to find information on the internet or in books that would help you get a better grasp of electrical circuits. As for implementing ground, the power of electricity needs somewhere to flow to. That would be ground. When you connect a positive or negative voltage to ground the power will flow. Between these you have your circuit or load.
-
It probably wouldn't be a bad idea to find information on the internet or in books that would help you get a better grasp of electrical circuits. As for implementing ground, the power of electricity needs somewhere to flow to. That would be ground. When you connect a positive or negative voltage to ground the power will flow. Between these you have your circuit or load.
That problem was that one ground couldn't know about the other, and then how would the ground be able to know when to flow? I solved the proplem by 'cheating', as the ground I'm going to use don't have to be that specific. Now my system is really good, I'm going to implement kirchkorvs rule or something, can't remember the name... Niklas Ulvinge aka IDK