How to create a Arduino with Qspice

Hello, I have a question:
have any of you ever done a simulation there with an Arduino in Qspice?

how can I create a Arduino in Qspice?

Hi, mams69.

Are you asking for an entire Arduino board/schematic onto which you can load a compiled Arduino file and run it in a simulation?

–robert

1 Like

what arduino and what u want to achieve ? asking since that changes a lot of stuff

1 Like

I am in the process of building a half-bridge driver with a specific operating voltage that can be controlled by an Arduino Leonardo. First, I would like to simulate the whole thing in QSpice to check whether it is realistic. However, I can find everything in QSpice except an Arduino model. I have also read that QSpice does not include an Arduino model by default. Therefore, I would like to know if anyone has ever used or created an alternative. If so, how?

OK, sounds like you want everything from board schematic to program code execution. I doubt that anyone has done this for your specific board. However, it would be possible…

The Arduino Leonardo appears to use the ATmega32u4 chip from Microchip. I have a project that uses Microchip’s software simulator to run micro-controller code in a QSpice simulation. If the simulator supports the ATmega32 (and the required pin functionality), then, in theory, you could create a DLL component for the chip and add the Arduino & bridge schematic circuitry.

That would be quite a bit of work but is, in fact, what I created the project to allow folk to do. If you’re interested, you can find the QMdbSim Project in my QSpice GitHub repository.

–robert

1 Like

Personally, I would just create a small behavioral analog/digital section that does what you want the Arduino to do. Modelling the whole Arduino seems like a huge task. You could then validate your Arduino to your behavioral simulation to see if it works. But it would be a great learning experience if you decide to model the whole thing.

1 Like

Simulide can simulate arduino boards, but the software dont work with spice models.

1 Like

I agree, you only need the important part the support circuit is not needed and can be made in another simulation.

1 Like

Thank you all for your feedback. I will now take a look in Robert’s project folder to see if I can find anything.