Need Arduino / electrical help
- KathyNS
- Co-Administrator
- Articles: 0
- Posts: 2621
- Joined: Thu Apr 25, 2019 11:47 am
- 5
- Location: Nova Scotia
- Status:
Offline
-
TSS Photo of the Day
TSS Awards Badges
Need Arduino / electrical help
Is it possible that the surge of current to the camera is causing a spike that scrambles the Arduino's brain? How? And how can I correct it?
Thanks for any ideas.
DSO AP: Orion 200mm f/4 Newtonian Astrograph; ATIK 383L+; EFW2 filter wheel; Astrodon Ha,Oiii,LRGB filters; KWIQ/QHY5 guide scope; Planetary AP: Celestron C-11; ZWO ASI120MC; Portable: Celestron C-8 on HEQ5 pro; C-90 on wedge; 20x80 binos; Etc: Canon 350D; Various EPs, etc. Obs: 8' Exploradome; iOptron CEM60 (pier); Helena Observatory (H2O) Astrobin
-
- Articles: 0
- Posts: 626
- Joined: Sun May 12, 2019 1:59 pm
- 4
- Location: Saskatchewan, Canada
- Status:
Offline
-
TSS Photo of the Day
Re: Need Arduino / electrical help
Mounts: CGEM, CG-4, EQ2, Alt Az, SLT
Cameras: ZWO ASI533MC Pro, ZWO ASI120MM, Canon 1100D
- KathyNS
- Co-Administrator
- Articles: 0
- Posts: 2621
- Joined: Thu Apr 25, 2019 11:47 am
- 5
- Location: Nova Scotia
- Status:
Offline
-
TSS Photo of the Day
TSS Awards Badges
Re: Need Arduino / electrical help
DSO AP: Orion 200mm f/4 Newtonian Astrograph; ATIK 383L+; EFW2 filter wheel; Astrodon Ha,Oiii,LRGB filters; KWIQ/QHY5 guide scope; Planetary AP: Celestron C-11; ZWO ASI120MC; Portable: Celestron C-8 on HEQ5 pro; C-90 on wedge; 20x80 binos; Etc: Canon 350D; Various EPs, etc. Obs: 8' Exploradome; iOptron CEM60 (pier); Helena Observatory (H2O) Astrobin
-
- Articles: 0
- Posts: 626
- Joined: Sun May 12, 2019 1:59 pm
- 4
- Location: Saskatchewan, Canada
- Status:
Offline
-
TSS Photo of the Day
Re: Need Arduino / electrical help
Mounts: CGEM, CG-4, EQ2, Alt Az, SLT
Cameras: ZWO ASI533MC Pro, ZWO ASI120MM, Canon 1100D
- ARock
- Articles: 0
- Posts: 363
- Joined: Mon May 13, 2019 4:06 am
- 4
- Location: USA
- Status:
Offline
-
TSS Awards Badges
Re: Need Arduino / electrical help
If the Arduino, receives and acts on the commands, it is likely sending acks as well. Maybe the problem is on the computer side? Not sure if you tried this, but can you send the commands to the arduino using the serial monitor in the Arduino IDE instead of the some application? That can let you see what is happening on the arduino port.
Scopes: Zhumell Z8, Meade Adventure 80mm, Bushnell 1300x100 Goto Mak.
Mount: ES EXOS Nano EQ Mount, DIY Arduino+Stepper drives.
AP: 50mm guidescope, AR0130 based guidecam, Canon T3i, UHC filter.
EPs: ES82 18,11,6.7mm, Zhumell 30,9mm FJ Ortho 9mm, assorted plossls, Meade 2x S-F Barlow, DGM NPB filter.
Binos: Celestron Skymaster 15x70 (Albott tripod/monopod), Nikon Naturalist 7x35.
- SkyHiker
- Articles: 0
- Posts: 2293
- Joined: Sat May 11, 2019 8:40 pm
- 4
- Location: Santa Barbara, CA
- Status:
Offline
-
TSS Photo of the Day
TSS Awards Badges
Re: Need Arduino / electrical help
- SkyHiker
- Articles: 0
- Posts: 2293
- Joined: Sat May 11, 2019 8:40 pm
- 4
- Location: Santa Barbara, CA
- Status:
Offline
-
TSS Photo of the Day
TSS Awards Badges
Re: Need Arduino / electrical help
- KathyNS
- Co-Administrator
- Articles: 0
- Posts: 2621
- Joined: Thu Apr 25, 2019 11:47 am
- 5
- Location: Nova Scotia
- Status:
Offline
-
TSS Photo of the Day
TSS Awards Badges
Re: Need Arduino / electrical help
The Arduino is connected to the PC by the USB port. It is powered separately, but of course if the external power is removed, it will draw power from the USB. The camera, of course, also connects to the PC. I haven't tried connecting the camera's power while its USB was unplugged. That's a good test; I will try it.
All the grounds are connected at the moment. The PC would share in the common ground via the USB connections. I think I can fairly easily isolate the ground of the camera's power supply. I will give that a try and see if that improves the situation.
DSO AP: Orion 200mm f/4 Newtonian Astrograph; ATIK 383L+; EFW2 filter wheel; Astrodon Ha,Oiii,LRGB filters; KWIQ/QHY5 guide scope; Planetary AP: Celestron C-11; ZWO ASI120MC; Portable: Celestron C-8 on HEQ5 pro; C-90 on wedge; 20x80 binos; Etc: Canon 350D; Various EPs, etc. Obs: 8' Exploradome; iOptron CEM60 (pier); Helena Observatory (H2O) Astrobin
- KathyNS
- Co-Administrator
- Articles: 0
- Posts: 2621
- Joined: Thu Apr 25, 2019 11:47 am
- 5
- Location: Nova Scotia
- Status:
Offline
-
TSS Photo of the Day
TSS Awards Badges
Re: Need Arduino / electrical help
Yes, the Arduino connects to the computer via USB. There is no way to tell if the problem is the Arduino's USB transmit or the computer's USB receive. I can send commands to the Arduino via the serial monitor, and those commands take effect. The serial monitor does not receive responses either.ARock wrote: ↑Mon Jul 27, 2020 1:03 am Does the camera connect to the computer using USB as well, directly or through a USB hub?
If the Arduino, receives and acts on the commands, it is likely sending acks as well. Maybe the problem is on the computer side? Not sure if you tried this, but can you send the commands to the arduino using the serial monitor in the Arduino IDE instead of the some application? That can let you see what is happening on the arduino port.
DSO AP: Orion 200mm f/4 Newtonian Astrograph; ATIK 383L+; EFW2 filter wheel; Astrodon Ha,Oiii,LRGB filters; KWIQ/QHY5 guide scope; Planetary AP: Celestron C-11; ZWO ASI120MC; Portable: Celestron C-8 on HEQ5 pro; C-90 on wedge; 20x80 binos; Etc: Canon 350D; Various EPs, etc. Obs: 8' Exploradome; iOptron CEM60 (pier); Helena Observatory (H2O) Astrobin
- yobbo89 Online
- Moderator
- Articles: 0
- Posts: 2605
- Joined: Sat May 11, 2019 7:44 pm
- 4
- Location: australia qld brisbane
- Status:
Online
-
TSS Photo of the Day
Re: Need Arduino / electrical help
cameras : asi 1600mm-c/asi1600mm-c,asi120mc,prostar lp guidecam, nikkon d60, sony a7,asi 290 mm
mounts : eq6 pro/eq8/mesu 200 v2
filters : 2'' astronomik lp/badder lrgb h-a,sII,oIII,h-b,Baader Solar Continuum, chroma 3nm ha,sii,oiii,nii,rgb,lowglow,uv/ir,Thousand Oaks Solar Filter,1.25'' #47 violet,pro planet 742 ir,pro planet 807 ir,pro planet 642 bp ir.
extras : skywatcher f4 aplanatic cc, Baader MPCC MKIII Coma Corrector,Orion Field Flattener,zwo 1.25''adc.starlight maxi 2" 9x filter wheel,tele vue 2x barlow .
- OzEclipse
- Moderator
- Articles: 2
- Posts: 2424
- Joined: Sat May 11, 2019 8:11 am
- 4
- Location: Young, NSW, Australia, 34S, 148E
- Status:
Offline
-
TSS Awards Badges
TSS Photo of the Day
Re: Need Arduino / electrical help
Yobbo,yobbo89 wrote: ↑Mon Jul 27, 2020 12:38 pm hey kathy, what is your project about that you're doing exactly ? remote power on and power off for the mount ?, any plans for usb connection,disconect via the same method ? i have a spare audrino so would make use for me , saves me from going out in the cold to reset any droped out device .
You live in Brisbane. I grew up there. It never gets cold - wimp!
Joe
Amateur astronomer since 1978...................Web site : http://joe-cali.com/
Scopes: ATM 18" Dob, Vixen VC200L, ATM 6"f7, Stellarvue 102ED, Saxon ED80, WO M70 ED, Orion 102 Maksutov, ST80.
Mounts: Takahashi EM-200, iOptron iEQ45, Push dobsonian with Nexus DSC, three homemade EQ's.
Eyepieces: TV Naglers 31, 17, 12, 7; Denkmeier D21 & D14; Pentax XW10, XW5, Unitron 40mm Kellner, Meade Or 25,12
Cameras : Pentax K1, K5, K01, K10D / VIDEO CAMS : TacosBD, Lihmsec.
Cam/guider/controllers: Lacerta MGEN 3, SW Synguider, Simulation Curriculum SkyFi 3+Sky safari
Memberships Astronomical Association of Queensland; RASNZ Occultations Section; Single Exposure Milky Way Facebook Group (Moderator) (12k members), The Sky Searchers (moderator)
- OzEclipse
- Moderator
- Articles: 2
- Posts: 2424
- Joined: Sat May 11, 2019 8:11 am
- 4
- Location: Young, NSW, Australia, 34S, 148E
- Status:
Offline
-
TSS Awards Badges
TSS Photo of the Day
Re: Need Arduino / electrical help
It sounds like you are on the right track with other advice. For future reference, if you are worried about spikes, placing a small capacitor across dc lines acts as a short to damp out any spikes. Does nothing to the DC power line or dc signals.Is it possible that the surge of current to the camera is causing a spike that scrambles the Arduino's brain? How? And how can I correct it?
Cheers
Joe
Amateur astronomer since 1978...................Web site : http://joe-cali.com/
Scopes: ATM 18" Dob, Vixen VC200L, ATM 6"f7, Stellarvue 102ED, Saxon ED80, WO M70 ED, Orion 102 Maksutov, ST80.
Mounts: Takahashi EM-200, iOptron iEQ45, Push dobsonian with Nexus DSC, three homemade EQ's.
Eyepieces: TV Naglers 31, 17, 12, 7; Denkmeier D21 & D14; Pentax XW10, XW5, Unitron 40mm Kellner, Meade Or 25,12
Cameras : Pentax K1, K5, K01, K10D / VIDEO CAMS : TacosBD, Lihmsec.
Cam/guider/controllers: Lacerta MGEN 3, SW Synguider, Simulation Curriculum SkyFi 3+Sky safari
Memberships Astronomical Association of Queensland; RASNZ Occultations Section; Single Exposure Milky Way Facebook Group (Moderator) (12k members), The Sky Searchers (moderator)
- yobbo89 Online
- Moderator
- Articles: 0
- Posts: 2605
- Joined: Sat May 11, 2019 7:44 pm
- 4
- Location: australia qld brisbane
- Status:
Online
-
TSS Photo of the Day
Re: Need Arduino / electrical help
haha, i think because it's always humid and hot most of the year,as soon as it hits below 26 deg in " winter" with extra " " ,it becomes kaotic frozen weather ! haha , i'd say climate change difference is what gets me .OzEclipse wrote: ↑Mon Jul 27, 2020 1:42 pmYobbo,yobbo89 wrote: ↑Mon Jul 27, 2020 12:38 pm hey kathy, what is your project about that you're doing exactly ? remote power on and power off for the mount ?, any plans for usb connection,disconect via the same method ? i have a spare audrino so would make use for me , saves me from going out in the cold to reset any droped out device .
You live in Brisbane. I grew up there. It never gets cold - wimp!
Joe
cameras : asi 1600mm-c/asi1600mm-c,asi120mc,prostar lp guidecam, nikkon d60, sony a7,asi 290 mm
mounts : eq6 pro/eq8/mesu 200 v2
filters : 2'' astronomik lp/badder lrgb h-a,sII,oIII,h-b,Baader Solar Continuum, chroma 3nm ha,sii,oiii,nii,rgb,lowglow,uv/ir,Thousand Oaks Solar Filter,1.25'' #47 violet,pro planet 742 ir,pro planet 807 ir,pro planet 642 bp ir.
extras : skywatcher f4 aplanatic cc, Baader MPCC MKIII Coma Corrector,Orion Field Flattener,zwo 1.25''adc.starlight maxi 2" 9x filter wheel,tele vue 2x barlow .
- ARock
- Articles: 0
- Posts: 363
- Joined: Mon May 13, 2019 4:06 am
- 4
- Location: USA
- Status:
Offline
-
TSS Awards Badges
Re: Need Arduino / electrical help
Another way to determine what the Arduino is doing is to use the Arduino's LED which is connected to one of the pins. You could add light flashing patterns to the arduino code upon USB recieve/transmit and look for them. The shield might get in the way though.KathyNS wrote: ↑Mon Jul 27, 2020 11:20 am Yes, the Arduino connects to the computer via USB. There is no way to tell if the problem is the Arduino's USB transmit or the computer's USB receive. I can send commands to the Arduino via the serial monitor, and those commands take effect. The serial monitor does not receive responses either.
Which relay shield are you using?
Scopes: Zhumell Z8, Meade Adventure 80mm, Bushnell 1300x100 Goto Mak.
Mount: ES EXOS Nano EQ Mount, DIY Arduino+Stepper drives.
AP: 50mm guidescope, AR0130 based guidecam, Canon T3i, UHC filter.
EPs: ES82 18,11,6.7mm, Zhumell 30,9mm FJ Ortho 9mm, assorted plossls, Meade 2x S-F Barlow, DGM NPB filter.
Binos: Celestron Skymaster 15x70 (Albott tripod/monopod), Nikon Naturalist 7x35.
- turboscrew
- Articles: 0
- Posts: 3233
- Joined: Sat Jun 20, 2020 9:22 am
- 3
- Location: Nokia, Finland
- Status:
Offline
-
TSS Awards Badges
Re: Need Arduino / electrical help
A power surge would either reboot Arduino or crash it. In either case it wouldn't execute the commands.
Also, in digital electronics, ground loops are often wanted, whereas in analogue electronics they are usually avoided.
In digital electronics ground coupled interference is seldom a problem.
Senior Embedded SW Designer
Telescope: OrionOptics XV12, Mount: CEM120, Tri-pier 360 and alternative dobson mount.
Grab 'n go: Omegon AC 102/660 on AZ-3 mount
Eyepieces: 26 mm Omegon SWAN 70°, 15 mm TV Plössl, 12.5 mm Baader Morpheus, 10 mm TV Delos, 6 mm Baader Classic Ortho, 5 mm TV DeLite, 4 mm and 3 mm TV Radians
Cameras: ZWO ASI 294MM Pro, Omegon veLOX 178C
OAG: TS-Optics TSOAG09, ZWO EFW 7 x 36 mm, ZWO filter sets: LRGB and Ha/OIII/SII
Explore Scientific HR 2" coma corrector, Meade x3 1.25" Barlow, TV PowerMate 4x 2"
Some filters (#80A, ND-96, ND-09, Astronomik UHC)
Laptop: Acer Enduro Urban N3 semi-rugged, Windows 11
LAT 61° 28' 10.9" N, Bortle 5
I don't suffer from insanity. I'm enjoying every minute of it.
- Mac
- Articles: 0
- Posts: 2770
- Joined: Tue Sep 24, 2019 4:07 pm
- 4
- Location: Akron OH
- Status:
Offline
-
TSS Photo of the Day
Re: Need Arduino / electrical help
I've dealt with many similar types of conditions with my credit card processing software and terminal devices connected by USB over the years and this was always a good practice.
Scopes : Explore Scientific ED102 Triplet APO - Radian Raptor Triplet APO - Orion 50mm
Mount : AVX EQ | Software : KStars - EKOS - Stellar OS | Cameras : ZWO ASI533MC ASI1600MM ASI120MM-mini
CPU : Mac Studio, iMac - Kstars-Ekos on Raspberry Rpi4/RPi5 | Misc : Thousand Oaks dew controller - DewNot straps - Optolong L-enhance - ZWO EAF
Image Processing : PixInsight - LightRoom - Photoshop - macOS 14 - Windows 11
- turboscrew
- Articles: 0
- Posts: 3233
- Joined: Sat Jun 20, 2020 9:22 am
- 3
- Location: Nokia, Finland
- Status:
Offline
-
TSS Awards Badges
Re: Need Arduino / electrical help
To me it sounds like the camera messes the USB. ("The USB connection to the computer must be unplugged and reconnected in order to re-establish the COM port.")
Senior Embedded SW Designer
Telescope: OrionOptics XV12, Mount: CEM120, Tri-pier 360 and alternative dobson mount.
Grab 'n go: Omegon AC 102/660 on AZ-3 mount
Eyepieces: 26 mm Omegon SWAN 70°, 15 mm TV Plössl, 12.5 mm Baader Morpheus, 10 mm TV Delos, 6 mm Baader Classic Ortho, 5 mm TV DeLite, 4 mm and 3 mm TV Radians
Cameras: ZWO ASI 294MM Pro, Omegon veLOX 178C
OAG: TS-Optics TSOAG09, ZWO EFW 7 x 36 mm, ZWO filter sets: LRGB and Ha/OIII/SII
Explore Scientific HR 2" coma corrector, Meade x3 1.25" Barlow, TV PowerMate 4x 2"
Some filters (#80A, ND-96, ND-09, Astronomik UHC)
Laptop: Acer Enduro Urban N3 semi-rugged, Windows 11
LAT 61° 28' 10.9" N, Bortle 5
I don't suffer from insanity. I'm enjoying every minute of it.
- KathyNS
- Co-Administrator
- Articles: 0
- Posts: 2621
- Joined: Thu Apr 25, 2019 11:47 am
- 5
- Location: Nova Scotia
- Status:
Offline
-
TSS Photo of the Day
TSS Awards Badges
Re: Need Arduino / electrical help
I will be testing with the camera's USB unplugged as soon as I get a chance.turboscrew wrote: ↑Mon Jul 27, 2020 3:27 pm Hmm, if Arduino executes the commands, it can't be messed up. I wonder if the camera and Arduino use the same USB HUB. In that way the camera's USB signal line could affect the Arduino's USB transmit line without affecting Arduino's receive line. So if you could power the camera without camera USB attached...?
The Arduino and the camera are on totally different USB hubs, connected to different ports on the computer. There are about as far apart, electrically, as it is possible to be. The hub that the Arduino is on is a powered hub, so I am pretty sure that I am not overloading the computer's USB port.
DSO AP: Orion 200mm f/4 Newtonian Astrograph; ATIK 383L+; EFW2 filter wheel; Astrodon Ha,Oiii,LRGB filters; KWIQ/QHY5 guide scope; Planetary AP: Celestron C-11; ZWO ASI120MC; Portable: Celestron C-8 on HEQ5 pro; C-90 on wedge; 20x80 binos; Etc: Canon 350D; Various EPs, etc. Obs: 8' Exploradome; iOptron CEM60 (pier); Helena Observatory (H2O) Astrobin
- Mac
- Articles: 0
- Posts: 2770
- Joined: Tue Sep 24, 2019 4:07 pm
- 4
- Location: Akron OH
- Status:
Offline
-
TSS Photo of the Day
Re: Need Arduino / electrical help
If you can easily switch them, give it a try.
What is the length of your cable and did you try another?
Scopes : Explore Scientific ED102 Triplet APO - Radian Raptor Triplet APO - Orion 50mm
Mount : AVX EQ | Software : KStars - EKOS - Stellar OS | Cameras : ZWO ASI533MC ASI1600MM ASI120MM-mini
CPU : Mac Studio, iMac - Kstars-Ekos on Raspberry Rpi4/RPi5 | Misc : Thousand Oaks dew controller - DewNot straps - Optolong L-enhance - ZWO EAF
Image Processing : PixInsight - LightRoom - Photoshop - macOS 14 - Windows 11
- turboscrew
- Articles: 0
- Posts: 3233
- Joined: Sat Jun 20, 2020 9:22 am
- 3
- Location: Nokia, Finland
- Status:
Offline
-
TSS Awards Badges
Re: Need Arduino / electrical help
I'm not worried about overloading, but misbehaving USB device messing up the USB host. Something, like one of the signals shorted or something. The host's logic (state machine) goes bananas. Have you tried a different cable?KathyNS wrote: ↑Mon Jul 27, 2020 4:23 pmI will be testing with the camera's USB unplugged as soon as I get a chance.turboscrew wrote: ↑Mon Jul 27, 2020 3:27 pm Hmm, if Arduino executes the commands, it can't be messed up. I wonder if the camera and Arduino use the same USB HUB. In that way the camera's USB signal line could affect the Arduino's USB transmit line without affecting Arduino's receive line. So if you could power the camera without camera USB attached...?
The Arduino and the camera are on totally different USB hubs, connected to different ports on the computer. There are about as far apart, electrically, as it is possible to be. The hub that the Arduino is on is a powered hub, so I am pretty sure that I am not overloading the computer's USB port.
For the camera, that is.
Unplugging and replugging an USB cable usually causes reloading (or restarting) of the driver.
Senior Embedded SW Designer
Telescope: OrionOptics XV12, Mount: CEM120, Tri-pier 360 and alternative dobson mount.
Grab 'n go: Omegon AC 102/660 on AZ-3 mount
Eyepieces: 26 mm Omegon SWAN 70°, 15 mm TV Plössl, 12.5 mm Baader Morpheus, 10 mm TV Delos, 6 mm Baader Classic Ortho, 5 mm TV DeLite, 4 mm and 3 mm TV Radians
Cameras: ZWO ASI 294MM Pro, Omegon veLOX 178C
OAG: TS-Optics TSOAG09, ZWO EFW 7 x 36 mm, ZWO filter sets: LRGB and Ha/OIII/SII
Explore Scientific HR 2" coma corrector, Meade x3 1.25" Barlow, TV PowerMate 4x 2"
Some filters (#80A, ND-96, ND-09, Astronomik UHC)
Laptop: Acer Enduro Urban N3 semi-rugged, Windows 11
LAT 61° 28' 10.9" N, Bortle 5
I don't suffer from insanity. I'm enjoying every minute of it.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute