Code is part of the circuit !

Hi All,

I made my first sketch, in order to document my progress so far.

When I had finally entered the cirduit, which is minimal, I found I cannot associate the cirduit with the

code I wrote for the arduino. It is possible in the website (when sharing) but not for private circuits

 

My request : Please add a "file" label for the processors, so that I can upload the associated code for the processor into the circuit schematic. I do not need to be able to edit it, just to store the right (version of) the code with my hardware layout.

Thanks for a very nice environment !

 

Ps : I have not looked actively yet but is there work ongoing to couple fritzing to (e.g.) gnu SPICE ?

that way we could simulate the circuits !

 

 

 

Posted 2 years, 4 months ago by raalst

Hi Raalst,

I'm not sure this is exactly what you are requesting, but perhaps it will do:  under the "window" menu there is an item to open a programming window. The programming window is still in an early stage of development, but nevertheless, you can paste your code there, and even edit it.  At present there is syntax highlighting support for Arduino and Picaxe code  The code file is saved separately, but is now "linked" to the sketch file.  If you save the sketch as shareable, the code file will be included in the shareable bundle.  

As to SPICE support, see our FAQ #1: http://fritzing.org/faq/.

Hope that helps,

- j

 

Posted 2 years, 4 months ago by Jonathan Cohen

Hee, thanks for the reply !

great that I can save my code.

as for the FAQ, sorry for not reading it first.

nevertheless, I did not wish you created any simulation capability, but just interface with existing

SPICE software like Gnu Spice (aka gEDA). I played with Gnu Spice and feeding in a circuit is VERY much like feeding it into Fritzing.

AH, one can always hope (or do it himself, of course ;-) )

<EDIT : after some more reading there were a few reasons mentioned why it is not a good idea

  to try create a graphical circuit editor with simulation capabilities. The main one I remember : in order to simulate there are parts needed which do not exits on your PCB (like a perfect current source) and ones that do exist on the PCB but do not have a function in simulation (e.g. a connector)

this means a lot of unnecessary work when you want to get it right. 

check out ngspice and gnucap as simulators. they are command line tools.>

 

 

Posted 2 years, 4 months ago by raalst

Post a Reply

Please login to post a reply.

  • RSS
  • Atom
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam