Notices


Reply
Thread Tools
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#1
Could someone please make somthing like http://www.falstad.com/circuit/ , for the N900, but in a way that it can receive input from the hardware (like special "components" in the simulation that represent things like the lighting sensor, touch screen, hardware buttons etc , and if possible virtual inputs where other programs can write values that can be read by the simulated cirtuit) and produce output besides the readouts (similarly, components for the speaker, LEDs, TV out etc , and if possible even output values that other programs can read) ; basicly allowing one to program behaviors by designing virtual electronic circuits.


With things like TV out and sound , as well as hardware buttons etc being accessible, i imagine it might be possible to recreate very primitive videogames and other earlier interactive electronic systems by actually following the original circuit designs with little modifications ; i just dunno if the speed of the simulation will reach real time, if not, perhaps things like sound and TV out scans would need to be emulated, updating the actual output with a separatedly rendered lower framerate output from the simulated circuit.

Last edited by TiagoTiago; 2010-10-03 at 08:43.
 
Posts: 1 | Thanked: 0 times | Joined on Oct 2010
#2
the app can already run on the n900 if anybody is interested. It's java based so it's a matter of downloading and installing the jdk from app manager.
Doesn't do what is required in the original post but does offer a circuit simulator solution for the n900.
 
unkno's Avatar
Posts: 266 | Thanked: 157 times | Joined on Oct 2009
#3
Won't it be better to port an open source SPICE program instead?

The following simulators have their source code available:
SPICE2/SPICE3: http://embedded.eecs.berkeley.edu/pu...pice/index.htm
Cider: http://embedded.eecs.berkeley.edu/pu...ider/index.htm
ngspice: http://ngspice.sourceforge.net/
tclspice: http://tclspice.sourceforge.net/
XSPICE: http://users.ece.gatech.edu/~mrichard/Xspice/
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#4
Didn't want to start a new thread so im writing here:

Does anybody know if there is any electronic programs for the N900, looking for everything from graphical resistor color "calculator" to circuit simulators.
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#5
anybody got any suggestions on programs for electronics???
 
Posts: 12 | Thanked: 10 times | Joined on Dec 2010
#6
Originally Posted by dr_frost_dk View Post
anybody got any suggestions on programs for electronics???
Hi Dr Frost:

I'm currently using SPICE from the command line. I've packaged the sources with alien, because I'm not really good preparing debian packages. But it definitely WORKS:
If you want to install this package, feel free to do it, using:
Code:
# dpkg -i ngspice_23_armel.deb
Here's the package:
There's a problem, though: I've not been able to optify the package, so that it will occupy 15MB of rootfs space.

Another solution is to install it in chrooted Easy Debian. That's what I've done, and run it this way from an Xterm:
Code:
$ debbie ngspice < example.cir > result.txt
Code:
$ cat result.txt
No. of Data Rows : 21
                                 p5-ganacom.cir
               AC Analysis  Fri Dec 23 11:24:08  2011
--------------------------------------------------------------
Index   frequency       vm(13)          vp(13)          
--------------------------------------------------------------
0	1.000000e+00	6.723726e-01	-9.50653e-03	
1	1.584893e+00	6.723266e-01	-1.50661e-02	
2	2.511886e+00	6.722112e-01	-2.38755e-02	
3	3.981072e+00	6.719215e-01	-3.78292e-02	
4	6.309573e+00	6.711954e-01	-5.99121e-02	
5	1.000000e+01	6.693818e-01	-9.47829e-02	
6	1.584893e+01	6.648903e-01	-1.49546e-01	
7	2.511886e+01	6.539953e-01	-2.34404e-01	
8	3.981072e+01	6.288283e-01	-3.61787e-01	
9	6.309573e+01	5.765417e-01	-5.40218e-01	
10	1.000000e+02	4.872047e-01	-7.59884e-01	
11	1.584893e+02	3.716915e-01	-9.84309e-01	
13	3.981072e+02	1.716845e-01	-1.31062e+00	
14	6.309573e+02	1.105168e-01	-1.40254e+00	
15	1.000000e+03	7.030738e-02	-1.46106e+00	
16	1.584893e+03	4.451092e-02	-1.49665e+00	
17	2.511886e+03	2.812682e-02	-1.51644e+00	
18	3.981072e+03	1.776446e-02	-1.52454e+00	
19	6.309573e+03	1.122411e-02	-1.52271e+00	
20	1.000000e+04	7.103329e-03	-1.51062e+00
 

The Following 3 Users Say Thank You to sebas For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:31.