Questions tagged [python]

On-topic questions related to Python would include embedded programming, using it as a tool for circuit analysis, or how Python interacts with computational hardware. Questions about libraries, algorithms, syntax, or code optimization should be directed to stackoverflow.com.

Filter by
Sorted by
Tagged with
21 votes
6 answers
28k views

LTspice automation

I have a battery-powered boost converter and I'm attempting to measure the maximum input (battery) voltage droop under various load conditions of high current draws (different duty-cycles/...
Joel B's user avatar
  • 3,477
21 votes
1 answer
11k views

ESP8266 eLUA (NodeMCU) vs MicroPython

I am searching for an unbiased, up-to-date comparison of the eLUA (NodeMCU) and MicroPython on ESP8266. I can only find very superficial reports/blogs of users trying out one or the other. - All of ...
ARF's user avatar
  • 5,189
8 votes
2 answers
11k views

Is there a spice directive to export waveform data in LTspice?

http://www.linear.com/solutions/1815 The above web-page explains how to export the waveform data to a text file. You basically run the LTspice simulation, clicking on the waveform window, go to ...
Shashank Sawant's user avatar
0 votes
1 answer
825 views

How to read an already existing NgSpice raw file

This has taken me a couple of days to solve. I have a set of NgSpice raw files that I would like to exploit so as to visualize the voltage distributions in ...
Wallflower's user avatar
-1 votes
3 answers
293 views

Can a computer control up to 10 motor drivers directly via the CANopen communication protocol? [closed]

I guess my question was not so clear, so I am editing now. I want to make CNC software. while doing this, I do not want to use any motion controller, PLC, FPGA, etc... I use three items. 1-USB to CAN ...
Muhammed Sevinçtekin's user avatar
6 votes
3 answers
2k views

Why am I detecting two I2C addresses on the same board, and why do neither of them appear in the datasheet?

I have this MIKROE board wired up to an S2 Feather via the SDA and SCL pins. The MIKROE board is powered by the Feather via <...
Z-Man Jones's user avatar
5 votes
3 answers
3k views

ESP8266-12E MicroPython Unable to access REPL (Python prompt)

I am trying to install MIcroPython Firmware on my ESP8266-12E chip. I am using esptool.py to flash the firmware. I have successfully uploaded the firmware ...
Karan S. Sisodia's user avatar
4 votes
1 answer
671 views

Am I using Shannon-Hartley Theorem and thermal noise correctly here?

I'm trying to learn about noise, sensitivity, and the Shannon-Hartley theorem, and I'm using some specs for a LoRa node IC to try it out. The Shannon-Hartley theorem says that the maximum data rate \$...
uhoh's user avatar
  • 3,419
3 votes
1 answer
117 views

JFET Id calculation mismatch in SPICE

I'm simulating the following circuit in PySpice: simulate this circuit – Schematic created using CircuitLab In this configuration, the N-JFET is always in saturation mode, as you can see by the ...
edwillys's user avatar
2 votes
2 answers
2k views

I fried my Raspberry Pi while using L298N but I don't understand why

Everything seems to indicate that I fried my raspberry pi: the green light wouldn't turn on, I changed the SD card for a new one but it still didn't work. That is a shame because I was having a lot ...
pau Fer's user avatar
  • 83
2 votes
2 answers
4k views

start a LTSpice simulation using code in MacOS

Help me please, I'm looking for the solution how to automate spice simulation with python on MacOS, currently, I'm thinking to use LTspice. However, I'm open to any proposal. I want to make ...
Vadim's user avatar
  • 155
0 votes
1 answer
121 views

Will this circuit work on a Raspberry Pi?

There a lot of articles on websites regarding the use of LDRs connected to a Raspberry Pi. As an example, using an ADC or using a built in library. I'm interested with my own design below and since I ...
chuackt's user avatar
  • 609
0 votes
1 answer
540 views

How do I invoke pymcuprog?

I have successfully created an ATtiny406 binary using avr-gcc in Linux, and I can program it to the device via Atmel-ICE under Atmel Studio in Windows, and it ...
personal_cloud's user avatar
0 votes
0 answers
2k views

Are my equations correct for a simple lithium ion battery model in Python?

I am trying to create a simple battery model in Python based on the RC circuit from, http://firsttimeprogrammer.blogspot.com/2015/07/electric-circuits-101-rc-and-rl-circuits.html. I have attached ...
W. Churchill's user avatar