Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

GDPR and DSGVO law

Storing Cookies (See : http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm ) help us to bring you our services at overunity.com . If you use this website and our services you declare yourself okay with using cookies .More Infos here:
https://overunity.com/5553/privacy-policy/
If you do not agree with storing cookies, please LEAVE this website now. From the 25th of May 2018, every existing user has to accept the GDPR agreement at first login. If a user is unwilling to accept the GDPR, he should email us and request to erase his account. Many thanks for your understanding

User Menu

Google Search

Custom Search

Author Topic: Pierre's 170W in 1600W out Looped Very impressive Build continued & moderated  (Read 278777 times)

Offline TinselKoala

  • Hero Member
  • *****
  • Posts: 13968
With the Chinese 2560 boards USB is on Com 4 not 1, as you would expect from an original.

L192

Actually, with Windows especially, this will depend on several factors, like what else you have plugged in, where you have it all plugged in, the day of the week, and whether or not you've sacrificed a mouse to Micro$haft lately.

For example, I am looking at a fresh installation of the Arduino IDE on my Win7Pro laptop, and the choices offered to me in the Tools>Port menu are COM3 and COM11 (yes, COM Eleven) and the Mega is using COM11. I'm pretty sure if I plug it into a different USB port on the Lenovo laptop, a different COM port will be assigned. That's Windows messing with us, not the Arduino IDE.
(My Mega is an OSEPP brand, which is a Canadian company, but I can't tell where the board was actually manufactured.)
As long as the IDE is installed correctly, along with the drivers, the COM-to-USB connection should be automatic, and all the user needs to do is to identify which of the port choices in the Port menu correspond to the Arduino device you have connected.

Offline listener191

  • Sr. Member
  • ****
  • Posts: 253
If pressing board reset restores USB comms, I would check C8, (missing or broken) assuming this is a CH340G board not an original board with FTDI in which case that would be C7.

This cap couples a line from the CH340G, to assert a reset and communication with the 2560.

L192

Offline Jeg

  • Hero Member
  • *****
  • Posts: 1539
It is not only the magnetic field a possible source of interaction. Displacement currents move perpendicular to the mag field, charging any plate in that direction. In any case, a sheet of grounded copper underneath arduino will hopefully ground them.   

Offline gotoluc

  • Moderator
  • Hero Member
  • *****
  • Posts: 3096
Wow, that's a lot of communications about a failed Arduino com port.
Today I'm going to do some in out power power test at the fixed frequency it's presently working at.
If someone can write the same program for Popeller (shown in video) that would be great.
Thanks everyone for your help.

Fr. Wow, c'est beaucoup de communications sur un port de com Arduino échoué.
Aujourd'hui, je vais faire un test de puissance à la fréquence fixe sur laquelle il travaille actuellement.
Si quelqu'un peut écrire le même programme pour Popeller (montré dans la vidéo) ce serait génial.
Merci à tous pour votre aide.


Video: https://youtu.be/LAC33oRHGvs

Offline gotoluc

  • Moderator
  • Hero Member
  • *****
  • Posts: 3096
Guys, please.  Input power and 5V power to H-Brige has always been off when I communicate with the Arduino. So there is no possibility this problem is related to any magnetic fields.

Fr.  s'il te plait. La puissance d'entrée et l'alimentation 5V de H-Bridge ont toujours été coupées lorsque je communique avec l'Arduino. Il n'y a donc aucune possibilité que ce problème soit lié à des champs magnétiques.

Offline pmgr

  • Full Member
  • ***
  • Posts: 155
    • Stop organ harvesting from Falun Gong practitioners
I have noted that using pin mode on digital pin 1 is actually using the UART port bit TX1 used for USB communication.

Perhaps we should shift all 30/36 pins down one i.e. 2 to 31/37?

Regards

L192
This is a very good point. As soon as the Arduino exits the bootloader and enters the sketch, it will no longer be possible to communicate with it through the UART port as it is used in the sketch.
So Luc, take the board out of the setup so all external wires are disconnected, and try uploading immediately after resetting the board (I am not too familiar with this specific board, so not sure how long the delay is before the bootloader exits and or if there is a reset button you can press if the board is already powered on). Maybe there is another way to make it stay in the bootloader and not execute the current sketch.
PmgR

Offline pmgr

  • Full Member
  • ***
  • Posts: 155
    • Stop organ harvesting from Falun Gong practitioners
Actually, there is a reset button on the board, see attached image. Try pushing that and then immediately after uploading the sketch, or the other way around, start the sketch upload, then press the reset button.
PmgR


Offline pmgr

  • Full Member
  • ***
  • Posts: 155
    • Stop organ harvesting from Falun Gong practitioners
I stand corrected. The Arduino talks to the computer over its own USB pins, not a TX/RX UART, see the schematic here

https://www.arduino.cc/en/uploads/Main/arduino-mega2560-schematic.pdf?

Only thing I can think of is that the Arduino does not stay long enough in the bootloader to establish communication with the PC. So try that reset button trick that I described in the previous post and play with the timing of pressing that button versus pressing the upload button on the PC.

PmgR

Offline listener191

  • Sr. Member
  • ****
  • Posts: 253
I stand corrected. The Arduino talks to the computer over its own USB pins, not a TX/RX UART, see the schematic here

https://www.arduino.cc/en/uploads/Main/arduino-mega2560-schematic.pdf?

Only thing I can think of is that the Arduino does not stay long enough in the bootloader to establish communication with the PC. So try that reset button trick that I described in the previous post and play with the timing of pressing that button versus pressing the upload button on the PC.

PmgR

Hi PmgR,

That's the schematic for the original arduino Mega 2560.

The Chinese imports use the CH340G chip for serial communication.

Tried to find a schematic for this board but failed.

Regards
L192

Offline partzman

  • Sr. Member
  • ****
  • Posts: 346
All,

To maybe help sort out the the confusion, the 2560 board I shipped to Luc uses An Atmel Mega16U2 as compared to the original Arduino AtMega8u2 for USB communications.

Regards,
Pm

Offline gotoluc

  • Moderator
  • Hero Member
  • *****
  • Posts: 3096
Actually, there is a reset button on the board, see attached image. Try pushing that and then immediately after uploading the sketch, or the other way around, start the sketch upload, then press the reset button.
PmgR

Good idea Pmgr and it worked. So now I have a successful high frequency upload. So before trying it again I'm going to do some (in out) power tests at this frequency.
When you get the chance can you please add the potentiometer function to the program you modified for me so I can have that available if my next upload is also successful.
The below video contains some scope shoots of the device operating.
Thanks for everyones help
Luc
 
Fr. Bonne idée Pmgr et ça marché. Alors maintenant, j'ai un téléchargement à haute fréquence réussie. Donc, avant d'essayer à nouveau, je vais faire des tests (in out) de puissance à cette fréquence.
Quand vous en avez l'opportunité, veuillez ajouter la fonction potentiomètre au programme que vous avez modifié pour que je puisse l'avoir si mon prochain téléchargement réussit.
La vidéo ci-dessous contient quelques prises d'oscilloscope de l'appareil en fonctionnement.
Merci pour l'aide de tout le monde
Luc

Video demo:  https://youtu.be/I0Rjjhuayf4

Offline forest

  • Hero Member
  • *****
  • Posts: 3967
Use linux, not need drivers.


Sorry, I see it's fixed now

Offline pmgr

  • Full Member
  • ***
  • Posts: 155
    • Stop organ harvesting from Falun Gong practitioners
When you get the chance can you please add the potentiometer function to the program you modified for me so I can have that available if my next upload is also successful.
Attached is the sketch with the potentiometer added back in (other line with x=5 commented out).
PmgR

Offline DreamThinkBuild

  • Hero Member
  • *****
  • Posts: 572
Hi Luc,

Impressive build.

I rewrote an alternative version to be more adaptive, it compiled fine but haven't tested on hardware. The only line you have to change is:

const int msDelay = 0;

When set to 0 it will take the delay value from the attached potentiometer.
When set to anything other than zero it will use that for the delay in milliseconds.

I noticed the L298n can switch down to the microseconds but doesn't like long delays >100ms maybe it's the board or my setup but it slopes off quickly. So delay() could be replaced with delayMicroseconds() later on.