Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Mega2560 analog input A8 to A15

3 posters

Go down  Message [Page 1 of 1]

1Mega2560 analog input A8 to A15 Empty Mega2560 analog input A8 to A15 Mon Dec 26, 2022 12:48 am

wiatei



First of all, thank you for that great software project. I'm still a beginner in programming, but I think I've noticed an error.

I use a Mega2560 Arduino Board for simulation and the analog inputs A0 to A15,whereby the inputs A0 - A7 work perfectly, I can query the values ​​0-1023 here with analogRead. Unfortunately, the remaining analog inputs cannot be addressed,  I have already tried all the possibilities, but simulation does not work. However, it works with the original Arduino board (R3), there can actually be no programming error, I think so. I've also tried to use the actual pin numbers (82-89 or 62-69) as the input numbers, all without success.

Maybe there is a solution to this malfunction, or it's up to me Very Happy .
Thanks in advance



Last edited by arcachofo on Tue Dec 27, 2022 1:13 am; edited 2 times in total (Reason for editing : Mark as solved (green color))

2Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Mon Dec 26, 2022 5:44 am

arcachofo

arcachofo

If I remember well this problem was already solved, but not sure.
Which SimulIDE version are you using?

3Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Mon Dec 26, 2022 9:42 am

wiatei



Thanks for your fast reply. I'm using the version 1.0.0-RC3 Rev 1148 and it seems that some of this ports are virtually "connected" together with the lower analog inputs A0 -A7.

4Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Mon Dec 26, 2022 12:14 pm

Defran

Defran

I see this, with R1452...

Mega2560 analog input A8 to A15 Mega_a13
Attachments
Mega2560 analog input A8 to A15 AttachmentMEGA_ANALOG_INPUTS_TEST.zip
You don't have permission to download attachments.
(16 Kb) Downloaded 5 times

5Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Mon Dec 26, 2022 1:34 pm

wiatei



Yes, I tested the circuit but with the same result that ports A0 to A7 and ports A8 to A15 are connected together, see my picture.
The values ​​are repeated A0 corresponds to the same value as A8, value A1 corresponds to the value of A9, etc., the analog inputs are not autonomous and are related internally. That's the problem, maybe there is a solution for this. Thanks for your effort.

Mega2560 analog input A8 to A15 Mega2511

6Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Mon Dec 26, 2022 7:31 pm

arcachofo

arcachofo

the same result that ports A0 to A7 and ports A8 to A15 are connected together
Ok I understand.
I will have a look.

And thanks for the test circuit Defran.

7Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Mon Dec 26, 2022 8:37 pm

Defran

Defran

De nada, it's a pleasure to help.

8Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Tue Dec 27, 2022 1:12 am

arcachofo

arcachofo

Solved at trunk Rev 1462.

Mega2560 analog input A8 to A15 Mega-a10

KerimF likes this post

9Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Tue Dec 27, 2022 2:41 pm

Defran

Defran

Good job, thanks. Ready to test it.

KerimF and wiatei like this post

10Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Tue Dec 27, 2022 2:52 pm

wiatei



Some people can do magic....

11Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Wed Dec 28, 2022 8:01 pm

arcachofo

arcachofo

Try the last build at Rev 1182, this issue should be solved:
https://simulide.forumotion.com/t390-simulide-1-0-0-tester-builds

12Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Wed Feb 15, 2023 11:01 pm

Defran

Defran

This error continues in T1530... Tell me please.

Mega2560 analog input A8 to A15 2023-013



13Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Thu Feb 16, 2023 12:08 am

arcachofo

arcachofo

It's working for me:

Mega2560 analog input A8 to A15 Meg10

14Mega2560 analog input A8 to A15 Empty Re: Mega2560 analog input A8 to A15 Thu Feb 16, 2023 8:43 am

Defran

Defran

I´m sorry. Yes, it works. it was my mistake.

arcachofo likes this post

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum