-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Welcome to the SpicePyBot wiki!
SpicePyBot is a Telegram Bot. Once you have Telegram installed on your smartphone (or tablet or laptop) you just need to look for it as @SpicePyBot (below to the left) and start chatting with it (below to the right).
In this section I assume you know what a netlist is. If this is not the case, please read the related SpicePy documentation. Also SpicePy examples can clarify the netlist concept.
So now, let's assume that you what all about the netlist, there are two available approaches for using the Bot:
- writing the netlist directly in the bot
- sending a text file including the netlist to the Bot
The netlist can be written directly in the Bot using the command:
/netlist
- After using this command, the Bot asks for the netlist (left figure, below).
- Assuming to have a voltage generator (10 V) in series to two resistors (R1, 1 ohm and R2, 9 ohm), you can write the netlist shown in the central figure (below).
- As soon as you press the send button, the Bot provides you voltages and currents at all branches (right figure, below)
The netlist can be written on a text file. It is not required .net or .cir extension. The common .txt extension can be safely used. I do not force users to .net or .cir extensions because it is hard to find an Android/iOS text editor that can hnadle them. On the contrary, every text editor handles .txt files.
Advise: do not use rich text formatting. Plain text is the only possible option.
Referring to the AC network documented in SpicePy (see section AC analysis), one can write the netlist in its preferred text editor. Here we refer to the text editor embedded in Solid Explored (an Android File manager). However, as already said, any text editor is good enough for this task.
Below you can see the text file created directly in the internal memory of the smartphone (left) and its content (right).
Once you have the file, send it as a document to the BOT using the clip button (below, left figure). As soon as you send the file the Bot reads and send you the netlist (below center) and the circuit solution (below right).
As a side note, one can shift between cartesian and polar representation of the results (for AC analysis) through the command
/complex_repr
The switch from cartesian to polar is shown below on the left. Afterward, uploading again the network the results shown below on the right are obtained.
In some cases, like transient analyses for example, the output is not given in text form. The result is a plot including varables specified by the user in the netlist. As shown below: netlist (left) and results (center/right).