Problem in simulaton ina219aid on proteus

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Locked
hakiminn
Unlicenced User
Posts: 2
Joined: Sun 2020-04-19 8:53

Problem in simulaton ina219aid on proteus

Post by hakiminn »

I use INA219AID with arduino in simulation , but there have problem where my lcd 16x2 ( not use i2c ) doesn't show correctly output which is 6V and 40mA (max supply) with 150ohm but in hardware was done and successful. I think there no problem in code. Thank you
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Problem in simulaton ina219aid on proteus

Post by Ettore »

I cannot replicate your problem with the INA219 model. As you can see in the screen shot below attached, with 6V bus voltage and RL=150 Ohms the supply current in the load is 40mA and this is measured by the INA219 and correctly shown on the virtual terminal. If you are unable to read these values with a simple 16x2 lcd then I tend to presume the problem is in your software. Post here your Proteus project file including your arduino software.
Attachments
Arduino_and_INA219_simulation_shot.jpg
Arduino_and_INA219_simulation_shot.jpg (367.02 KiB) Viewed 466 times
Kind regards,
Ettore Arena - Labcenter Electronics.
hakiminn
Unlicenced User
Posts: 2
Joined: Sun 2020-04-19 8:53

Re: Problem in simulaton ina219aid on proteus

Post by hakiminn »

Here i attach file all my code and circuit

Moderator note:
Project and code files deleted.
Attachments
This is a picture output my lcd
This is a picture output my lcd
Capture.PNG (38.14 KiB) Viewed 444 times
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Problem in simulaton ina219aid on proteus

Post by Ettore »

Sadly you've been using a cracked copy of Proteus, so you are not entitled to get support.

You're right about one thing, though: the main problem is not your code which is indeed based on Adafruit libraries.
The problem is your circuit! There is an obvious mistake and another less obvious one.

I suggest you to purchase a legal copy of Proteus and I will be more than happy to help you. You can see at this link: https://www.labcenter.com/pricing/comm/
With "Proteus VSM for Arduino AVR" license you will get all that you need of.

I must lock the topic. Sorry.
Attachments
Display_working.jpg
Display_working.jpg (348.2 KiB) Viewed 436 times
Kind regards,
Ettore Arena - Labcenter Electronics.
Locked