Jump to content

Gina

Beyond the Event Horizon
  • Posts

    45,326
  • Joined

  • Last visited

  • Days Won

    120

Everything posted by Gina

  1. I've managed to make use of the half dozen clearish nights we've had in the last few months to sort of some of my equipment and get to grips better with the CMOS sensor, having spent years using CCDs which behave differently. Certain things have become clear as wanting doing. Remote focussing must allow for the possibility of going further than intended and running out of rack. Want imaging rig with 200mm lens - ie. 3D printed bracket and remote focus. I need a bigger filter wheel than the ZWO EFW Mini with only 5 holes - going to get the bigger one with 8 holes. Need to finish getting my ASC working to see cloud. Be very helpful if I could finish my ROR automation and reduce mud and ice hazard of going out to observatory.
  2. I don't have a cover over the lens in daylight in my later versions and have run the ASC in full sunlight with no ill effects.
  3. Final sketch and IDE report. // Filename :- Giant_Wall_Clock_v2_2019-11-15 // Software timing from RTC using polling // #include <DS3232RTC.h> //http://github.com/JChristensen/DS3232RTC #include <Wire.h> //http://arduino.cc/en/Reference/Wire (included with Arduino IDE) // boolean lastSqWave = 0; boolean ledON = 0; int sqwPin = A6; int dirPin = 5; // DIRECTION pin int stepPin = 6; // STEP pin int enPin = 12; // Enable pin int ledPin = 13; // Internal LED pin // void setup() { pinMode(dirPin, OUTPUT); pinMode(stepPin, OUTPUT); pinMode(enPin, OUTPUT); pinMode(ledPin, OUTPUT); digitalWrite(enPin, 0); // enable digitalWrite(dirPin, 1); // set on test pinMode(sqwPin,INPUT_PULLUP); // RTC timing pin RTC.squareWave(SQWAVE_1_HZ); // 4096Hz square wave } // // void runClock(void){ for (int i = 1600; i >= 1; i--) { // count 1600 pulaes in half second digitalWrite(stepPin, 1); delayMicroseconds(10); // Make STEP pulse 10μs long digitalWrite(stepPin, 0); delayMicroseconds(290); } // 1600×300 = 480ms **** 2019-11-17 ledON = !ledON; digitalWrite(ledPin, ledON); } // flash LED on & off // void loop(){ boolean val = ((analogRead(sqwPin) > 500)); // read logic level of 1Hz square wave if (val != lastSqWave) { lastSqWave = val; runClock(); } // Call runClock on rising edge of RTC square wave } // End Sketch uses 3896 bytes (12%) of program storage space. Maximum is 30720 bytes. Global variables use 283 bytes (13%) of dynamic memory, leaving 1765 bytes for local variables. Maximum is 2048 bytes. /home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/tmp/arduino_build_979028/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex:i avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf" User configuration file is "/home/gina/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyUSB0 Using Programmer : arduino Overriding Baud Rate : 115200 AVR Part : ATmega328P Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Programmer Type : Arduino Description : Arduino Hardware Version: 3 Firmware Version: 4.4 Vtarget : 0.3 V Varef : 0.3 V Oscillator : 28.800 kHz SCK period : 3.3 us avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f (probably m328p) avrdude: reading input file "/tmp/arduino_build_979028/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex" avrdude: writing flash (3896 bytes): Writing | ################################################## | 100% 0.59s avrdude: 3896 bytes of flash written avrdude: verifying flash memory against /tmp/arduino_build_979028/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex: avrdude: load data flash data from input file /tmp/arduino_build_979028/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex: avrdude: input file /tmp/arduino_build_979028/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex contains 3896 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.44s avrdude: verifying ... avrdude: 3896 bytes of flash verified avrdude done. Thank you.
  4. Very interesting. I have only used my ASC in full sunlight at shorter exposures but have never damaged my camera with sunlight.
  5. Clock drive reinstalled and all working fire after a tiny tweak to the timing. Clock is now virtually silent - just a faint pulsating hum only audible if sitting quietly with no TV, radio or records. I can probably make that tiny hum quite inaudible with flexible mounting - the motor is currently fastened firmly to the partition wall (plasterboard).
  6. I am indeed though East Devon in The Blackdown Hills a few miles NE of Honiton. Bortle 4 here also.
  7. I think it's high time I resurrected this project though I might finish my ASC first. BTW the rotary encoder chip is MLX90316.
  8. Found my weather station thread HERE.
  9. Mine is all home built. The wind vane uses a magnetic field direction sensor in an SMD chip. Measures in degrees - not that it needs anything like that level of accuracy. I must take the thead (assuming I can find it) and convert it to a Blog.
  10. That's interesting though I already have a magnetic transducer arranged for the wind vane and simple Hall device for the anemometer. 1-wire instruments connect to an Arduino Uno plus data logging shield which also has the pressure sensor on. It all works basically - I just have to get round to finishing it.
  11. Threads must be by far the most difficult things you can print!! Good luck.
  12. The first aim of the whole exercise was to improve the drive for my Giant Wall Clock and remove the noisy gears and I now have the motor (NEMA17) and electronics board on the table (aka work bench) running from a bench PSU and all working fine. Turned the motor current down on the TMC2100 driver and running fine with plenty of power from 9v and 100mA. Put the motor to my ear and could just hear a faint hum. Another aim was to set up a sketch to run my ROR automation and interface to an RPi for remote control. Another aim is for an auto-winding mechanism for my Longcase Pendulum Clock. (aka Grandfather Clock)
  13. New sketch compiled and uploaded to the Arduino Nano. Motor and control electronics board set up on table and all working fine. Turned the motor current down until the PSU showed 100mA at 9v and the NEMA17 motor still produced plenty of power. I could hear a faint hum if I put the motor to my ear.
  14. Found a Nano clone and was able to upload with (Old Bootloader) so I'm a happy bunny 😀 Thank again everyone. dmesg :- [ 1870.558425] usb 4-1: new full-speed USB device number 5 using ohci-pci [ 1870.723282] usb 4-1: New USB device found, idVendor=1a86, idProduct=7523 [ 1870.723288] usb 4-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 1870.723291] usb 4-1: Product: USB2.0-Serial [ 1871.768896] usbcore: registered new interface driver ch341 [ 1871.768917] usbserial: USB Serial support registered for ch341-uart [ 1871.768938] ch341 4-1:1.0: ch341-uart converter detected [ 1871.791463] usb 4-1: ch341-uart converter now attached to ttyUSB0 gina@Mint-Desktop ~ $ IDE report :- Sketch uses 3896 bytes (12%) of program storage space. Maximum is 30720 bytes. Global variables use 283 bytes (13%) of dynamic memory, leaving 1765 bytes for local variables. Maximum is 2048 bytes. /home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex:i avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf" User configuration file is "/home/gina/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyUSB0 Using Programmer : arduino Overriding Baud Rate : 57600 AVR Part : ATmega328P Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Programmer Type : Arduino Description : Arduino Hardware Version: 2 Firmware Version: 1.16 Vtarget : 0.0 V Varef : 0.0 V Oscillator : Off SCK period : 0.1 us avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f (probably m328p) avrdude: reading input file "/tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex" avrdude: writing flash (3896 bytes): Writing | ################################################## | 100% 1.26s avrdude: 3896 bytes of flash written avrdude: verifying flash memory against /tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex: avrdude: load data flash data from input file /tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex: avrdude: input file /tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex contains 3896 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.97s avrdude: verifying ... avrdude: 3896 bytes of flash verified avrdude done. Thank you.
  15. I have disconnected the Nano and connected a Mega 2560 and that has compiled the sketch AND uploaded successfully. Checked dmesg for port and set to Mega 2560 and /dev/ttyACM0. [ 3312.946075] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [ 3312.946090] ftdi_sio 4-1:1.0: device disconnected [ 3320.959230] usb 4-1: new full-speed USB device number 7 using ohci-pci [ 3321.137984] usb 4-1: New USB device found, idVendor=2341, idProduct=0042 [ 3321.137990] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=220 [ 3321.137994] usb 4-1: Manufacturer: Arduino (www.arduino.cc) [ 3321.137997] usb 4-1: SerialNumber: A4131363139351F04172 [ 3321.171082] cdc_acm 4-1:1.0: ttyACM0: USB ACM device [ 3321.172169] usbcore: registered new interface driver cdc_acm [ 3321.172173] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters gina@Mint-Desktop ~ $
  16. Response now. It gets past the port stage but "avrdude"programmer is not responding. That's where the trouble is.
  17. [ 6.009001] r8169 0000:02:00.0 enp2s0: link down [ 6.009022] r8169 0000:02:00.0 enp2s0: link down [ 6.009090] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready [ 6.466087] usbcore: registered new interface driver usbserial [ 6.466116] usbcore: registered new interface driver usbserial_generic [ 6.466136] usbserial: USB Serial support registered for generic [ 6.470395] usbcore: registered new interface driver ftdi_sio [ 6.470418] usbserial: USB Serial support registered for FTDI USB Serial Device [ 6.470509] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected [ 6.470566] usb 4-1: Detected FT232RL [ 6.473848] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0 [ 8.285565] r8169 0000:02:00.0 enp2s0: link up [ 8.285580] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready [ 13.175561] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel [ 13.180489] vboxdrv: Found 4 processor cores [ 13.199138] vboxdrv: TSC mode is Invariant, tentative frequency 3293955666 Hz [ 13.199162] vboxdrv: Successfully loaded version 5.1.34_Ubuntu (interface 0x002a0000) [ 13.206552] VBoxNetFlt: Successfully started. [ 13.217855] VBoxNetAdp: Successfully started. [ 13.223924] VBoxPciLinuxInit [ 13.228349] vboxpci: IOMMU not found (not registered) [ 16.087507] FAT-fs (sdg1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 2109.169822] usb 4-1: USB disconnect, device number 2 [ 2109.170007] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [ 2109.170024] ftdi_sio 4-1:1.0: device disconnected [ 2112.618856] usb 4-1: new full-speed USB device number 5 using ohci-pci [ 2112.796890] usb 4-1: New USB device found, idVendor=0403, idProduct=6001 [ 2112.796896] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2112.796899] usb 4-1: Product: FT232R USB UART [ 2112.796901] usb 4-1: Manufacturer: FTDI [ 2112.796903] usb 4-1: SerialNumber: AC00MB2F [ 2112.802946] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected [ 2112.802990] usb 4-1: Detected FT232RL [ 2112.807251] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0 [ 2658.369272] usb 4-1: USB disconnect, device number 5 [ 2658.369468] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [ 2658.369483] ftdi_sio 4-1:1.0: device disconnected [ 2660.570827] usb 4-1: new full-speed USB device number 6 using ohci-pci [ 2660.748663] usb 4-1: New USB device found, idVendor=0403, idProduct=6001 [ 2660.748669] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2660.748672] usb 4-1: Product: FT232R USB UART [ 2660.748674] usb 4-1: Manufacturer: FTDI [ 2660.748676] usb 4-1: SerialNumber: AC00MB2F [ 2660.754774] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected [ 2660.754836] usb 4-1: Detected FT232RL [ 2660.758902] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0 gina@Mint-Desktop ~ $
  18. Remind me please, where is dmesg?
  19. On my Linux machine I have removed all older versions of the Arduino IDE and recovered the libraries I need at present. My sketch with a few extra libraries now compiles fine but neither this nor Blink will upload to either Arduino Uno or Genuine Nano with FTDI comm chip.
  20. "/home/gina/.avrduderc" is not present. "/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf" contains avrdude.conf
  21. Port back to /dev/ttyS0 and now get This particular part seems it might be a problem
  22. Changed File > Preferences to Now get
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.