Jump to content

Stargazers Lounge Uses Cookies

Like most websites, SGL uses cookies in order to deliver a secure, personalised service, to provide social media functions and to analyse our traffic. Continued use of SGL indicates your acceptance of our cookie policy.

Gina

Members
  • Content Count

    45,079
  • Joined

  • Last visited

  • Days Won

    119

Gina last won the day on August 29

Gina had the most liked content!

Community Reputation

21,792 Excellent

About Gina

  • Rank
    Neutron Star

Contact Methods

  • Website URL
    http://ginad.uk (currently not available)

Profile Information

  • Gender
    Female
  • Interests
    Astrophotography, Photography, Electronics, Computer Hardware and Software (Programming)
  • Location
    Blackdown Hills, East Devon, UK
  1. I'll try that tomorrow.
  2. char chDT[16]; void showLocalTime() { struct tm timeinfo; if(!getLocalTime(&timeinfo)){ myDT = "Failed to obtain time"; return;} else { year = timeinfo.tm_year + 1900; month = timeinfo.tm_mon + 1; day = timeinfo.tm_mday; hour = timeinfo.tm_hour; minute = timeinfo.tm_min; myDT = ""; myDT += year; myDT += "-"; if (month < 10) {myDT += "0";} myDT += month; myDT += "-"; if (day < 10) {myDT += "0";} myDT += day; myDT += " "; if (hour < 10) {myDT += "0";} myDT += hour; myDT += ":"; if (minute < 10) {myDT += "0";} myDT += minute; } myDT.toCharArray(chDT, 16); } Then something like client.publish("local/datetime", chDT);
  3. All I want to do in this instance is display the date and time in the Dashboard.
  4. I think I'll add the date/time code and message to the living room client rather that the ROR Automation then I can simply add a switch to change GMT/BST. Doesn't look like NTP does it.
  5. MQTT needs strings converted to an array of char - so toCharArray()
  6. I'm thinking of getting the time from ntpServer const char* ntpServer = "pool.ntp.org"; const long gmtOffset_sec = 0; const int daylightOffset_sec = 3600; void showLocalTime() { struct tm timeinfo; if(!getLocalTime(&timeinfo)){ myDT = "Failed to obtain time"; return;} else { year = timeinfo.tm_year + 1900; month = timeinfo.tm_mon + 1; day = timeinfo.tm_mday; hour = timeinfo.tm_hour; minute = timeinfo.tm_min; myDT = ""; myDT += year; myDT += "-"; if (month < 10) {myDT += "0";} myDT += month; myDT += "-"; if (day < 10) {myDT += "0";} myDT += day; myDT += " "; if (hour < 10) {myDT += "0";} myDT += hour; myDT += ":"; if (minute < 10) {myDT += "0";} myDT += minute; } }
  7. I'm working on the ROR Automation ATM and I think I'll just format the date/time and send it in a message.
  8. Got the wrong Text display. Seems I need some formatting! Result
  9. Thought I might have found it but not working ATM. I have something wrong, but what?
  10. I have the main board designed and built and I'll come to that later. I need an extra circuit board to carry the stepper motor driver modules. These are A4988 as often used in 3D and in fact these come from an earlier version of the control system for my 3D printers. This is a connection diagram for these driver modules. Next, the layout of the extra circuit board produced on stripboard (eg. Veroboard). The drivers share the 100µF electrolytic capacitor.
  11. Here are some photos of the focus motor, cam and coil spring that will pull the lever against the cam. The 28BYJ-48 has been modified to change it from unipolar to bipolar as per my blog :-
  12. Yes, when closed it will rest on the dome clamp ring and open it will be straight down and against the cone shaped piece that connects it to the pipe/mast.
  13. Focussing cam on 28BYJ-48 stepper motor.
  14. I have an automated ROR as WIP. Thread on here.
  15. Couple of photos of the focussing system. These photos also show the camera and thermally insulating casing. Inside of lid showing focus motor and lever. Top view showing focus lever on lens focussing sleeve.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.