Arduino questions





Results 1 to 15 of 15
  1. #1
    Join Date
    Sep 2006
    Location
    Pretoria
    Age
    47
    Posts
    445
    Thanked: 79

    Default Arduino questions

    To all the Arduino buffs and electronic buffs.

    I want to make use of an Arduino with a GSM shield to send an sms to the owner of a truck every time it tips out a load. It seems to be pretty straight forward, but, trucks use 24volt sytems, which I'm afraid will fry the Arduino.

    Am I barking up the wrong tree to think this must be very easy to do using the Arduino, or is there an off-the-shelf product already out there?

    Your inputs will be greatly appreciated.
    Jaco

    Isuzu KB300 DMax D/C 4x4 3" Homemade lift, Bosvark LFR Radio and free-wheel hubs.

  2. #2
    Join Date
    Sep 2006
    Location
    Loevenstein, Bellville
    Age
    40
    Posts
    2,467
    Thanked: 471

    Default Re: Arduino questions

    It shouldn't be very difficult to do. A step-down converter should be able to bring the voltage down to 5V but if the cabin has 12V supply, a simple lighter plug to USB car charger could do the trick.
    Niel
    2012 BMW F800GS
    2010 Nissan Navara 2.5 dCi 4x4
    2015 Bush Lapa Miskruier (B503)

  3. #3
    Join Date
    Mar 2012
    Location
    Ballito
    Age
    41
    Posts
    699
    Thanked: 404

    Default Re: Arduino questions

    You have a few options:
    • LM7805 voltage regulator. Cheap and should have (but doesn't NEED) a couple of smoothing capacitors. You'll need to solder it up on some project board and assuming a 100ma draw for the Arduino, it'll be dissipating 1.9W of heat so it'll need a heatsink too.
    • Buck converter. There are plenty cheap buck converter boards that will satisfy your needs.

    ZS5CMA
    ******
    His: '17 Hilux GD-6 4x4 A/T ~115000km
    Hers: '19 Mitsu Eclipse Cross ~ 15000km
    Semi-retired: '12 Polo BlueMotion ~350000km
    Burned to a crisp: '05 WJ 2.7CRD
    https://www.instagram.com/fstopza/

  4. #4
    Join Date
    Jul 2011
    Location
    127.0.0.1
    Age
    37
    Posts
    665
    Thanked: 292

    Default Re: Arduino questions

    If you are not dead set on a Arduino, why not look at a GSM Commander?

    My take it will be much easier to setup than a Arduino. I have worked with GSM Commanders before and they are pretty easy to setup with a nice application on the PC to send the config to the commander.
    I would think hooking up a pressure sensor to the GSM Commander and when the sensor is triggered, it will send a sms.

    https://gsmcommander.com/
    2007 Nissan Pathfinder LE 2.5dCI 4x4
    2013 Nissan Xtrail 2.0dCi XE 2x4

  5. #5
    Join Date
    Mar 2012
    Location
    Ballito
    Age
    41
    Posts
    699
    Thanked: 404

    Default Re: Arduino questions

    Quote Originally Posted by IcePick88 View Post
    If you are not dead set on a Arduino, why not look at a GSM Commander?

    My take it will be much easier to setup than a Arduino. I have worked with GSM Commanders before and they are pretty easy to setup with a nice application on the PC to send the config to the commander.
    I would think hooking up a pressure sensor to the GSM Commander and when the sensor is triggered, it will send a sms.

    https://gsmcommander.com/
    Nice product, but with an Arduino with a A6 or A9 GSM module, some bits and pieces & an industrial reed switch, this problem could be solved for ~R300.

    ZS5CMA
    ******
    His: '17 Hilux GD-6 4x4 A/T ~115000km
    Hers: '19 Mitsu Eclipse Cross ~ 15000km
    Semi-retired: '12 Polo BlueMotion ~350000km
    Burned to a crisp: '05 WJ 2.7CRD
    https://www.instagram.com/fstopza/

  6. #6
    Join Date
    Sep 2006
    Location
    Pretoria
    Age
    47
    Posts
    445
    Thanked: 79

    Default Re: Arduino questions

    Quote Originally Posted by IcePick88 View Post
    If you are not dead set on a Arduino, why not look at a GSM Commander?

    My take it will be much easier to setup than a Arduino. I have worked with GSM Commanders before and they are pretty easy to setup with a nice application on the PC to send the config to the commander.
    I would think hooking up a pressure sensor to the GSM Commander and when the sensor is triggered, it will send a sms.

    https://gsmcommander.com/
    Very nice option, but overkill for the application I have in mind.
    Jaco

    Isuzu KB300 DMax D/C 4x4 3" Homemade lift, Bosvark LFR Radio and free-wheel hubs.

  7. #7
    Join Date
    Jul 2011
    Location
    127.0.0.1
    Age
    37
    Posts
    665
    Thanked: 292

    Default Re: Arduino questions

    Quote Originally Posted by cainslie View Post
    Nice product, but with an Arduino with a A6 or A9 GSM module, some bits and pieces & an industrial reed switch, this problem could be solved for ~R300.
    True, much cheaper I hear you.

    But from a programming view, I'm thinking Arduino will be a headache. Unless you can find code already written for the specific application in mind (with the same peripherals you intend to use) that you can just "upload" to the board.
    2007 Nissan Pathfinder LE 2.5dCI 4x4
    2013 Nissan Xtrail 2.0dCi XE 2x4

  8. #8
    Join Date
    Mar 2012
    Location
    Ballito
    Age
    41
    Posts
    699
    Thanked: 404

    Default Re: Arduino questions

    Quote Originally Posted by IcePick88 View Post
    True, much cheaper I hear you.

    But from a programming view, I'm thinking Arduino will be a headache. Unless you can find code already written for the specific application in mind (with the same peripherals you intend to use) that you can just "upload" to the board.
    Fair point. In this particular example it would take me about an hour to write the code, end to end so it all comes down to what skills the OP has for the project.

    ZS5CMA
    ******
    His: '17 Hilux GD-6 4x4 A/T ~115000km
    Hers: '19 Mitsu Eclipse Cross ~ 15000km
    Semi-retired: '12 Polo BlueMotion ~350000km
    Burned to a crisp: '05 WJ 2.7CRD
    https://www.instagram.com/fstopza/

  9. The Following User Says Thank You to cainslie For This Useful Post:


  10. #9
    Join Date
    Sep 2009
    Location
    [REMOVED]
    Posts
    2,206
    Thanked: 309

    Default Re: Arduino questions

    Click image for larger version. 

Name:	ard.png 
Views:	105 
Size:	382.3 KB 
ID:	603045

    If you are comfortable with soldering and power consumption is not a big deal. You can just de solder the component as shown in the picture and then replace it with a LM7805 as mentioned before.
    If I remember correctly a 7805 regulator will take up to 36V and you may need a heatsink.

    GSM does come with a bit of maintenance. You would have to make sure it has enough airtime all the time and deal with situations where there is no signal so you dont mis an instance where the truck was tipped.

    Alternatively you could make use of an ESP8266 or ESP32 and a RTC. Save the data to a log on chip using its internal memory via SPIFFS and have it upload the data to a nearby web service when the truck goes home. The trade off offcoarse will be its not live.

    [Edit] if you consider using the Wifi route I could help. Can even 3d print a nice enclosure for you.
    Last edited by SBSP; 2021/01/21 at 08:13 PM.

  11. #10
    Join Date
    Sep 2006
    Location
    Pretoria
    Age
    47
    Posts
    445
    Thanked: 79

    Default Re: Arduino questions

    Quote Originally Posted by cainslie View Post
    Fair point. In this particular example it would take me about an hour to write the code, end to end so it all comes down to what skills the OP has for the project.
    I have some experience with the coding, as I bought one of the kits of Wish. My son and I had some serious fun building and testing the kits. But I will not call myself an expert.
    I believe from what I have seen that there is code available for download that should work with maybe a little tweaking. The unit will be powered permanently, and the trigger to send the SMS will just be a signal from the PTO, or even just a mechanical micro or read switch.

    @SBSP
    I think the owner would like to rather have the SMS live as to monitor his driver. I'm sure he will keep the airtime in place and will understand the whole no coverage scenario.
    I do know where the hot side of a soldering iron is, so the modification is not a problem.
    Jaco

    Isuzu KB300 DMax D/C 4x4 3" Homemade lift, Bosvark LFR Radio and free-wheel hubs.

  12. #11
    Join Date
    Sep 2009
    Location
    [REMOVED]
    Posts
    2,206
    Thanked: 309

    Default Re: Arduino questions

    Quote Originally Posted by jp_bez View Post
    @SBSP
    I think the owner would like to rather have the SMS live as to monitor his driver. I'm sure he will keep the airtime in place and will understand the whole no coverage scenario.
    I do know where the hot side of a soldering iron is, so the modification is not a problem.
    Well in that case good luck. Looking at various GSM modules there are quite a few and nice options. Most of them support GPS , so you can include the Longs and Lats in the SMS.
    Once you have the time, GPS location you can derive other info such as speed. GPRS can be used to send the longs and lats to a Web service and those can then be used to plot it on a google map.

    Some even comes with an accelerometer. Soooo many things that you can do with this.,

    My personal preference will be this one. All in one board and then just add an external antenna.
    https://www.robotics.org.za/TTGO-ESP32-GSM?search=gsm

    Click image for larger version. 

Name:	TTGO-ESP32-GSM-004.jpg 
Views:	20 
Size:	260.9 KB 
ID:	603163

  13. #12
    Join Date
    Sep 2006
    Location
    Pretoria
    Age
    47
    Posts
    445
    Thanked: 79

    Default Re: Arduino questions

    I see that a Garmin gps charger has an input of 10 to 30v and an ourput of 4.8 to 5.2 volt. Will it be ok to drive both the Uno and gsm shield?
    Jaco

    Isuzu KB300 DMax D/C 4x4 3" Homemade lift, Bosvark LFR Radio and free-wheel hubs.

  14. #13
    Join Date
    Sep 2009
    Location
    [REMOVED]
    Posts
    2,206
    Thanked: 309

    Default Re: Arduino questions

    Quote Originally Posted by jp_bez View Post
    I see that a Garmin gps charger has an input of 10 to 30v and an ourput of 4.8 to 5.2 volt. Will it be ok to drive both the Uno and gsm shield?
    You need to know the amount of current that can be drawn from the PSU at 5V. Which GSM module will you use ? You have to also make sure you connect the module and Arduino in parallel to the power source. Dont power the GSM module from any of the Arduino header pins.

    Rough guess, it will probably be fine. Maybe also make sure the GSM module runs at 5V and not at 3V
    Last edited by SBSP; 2021/01/26 at 08:40 PM.

  15. #14
    Join Date
    Sep 2006
    Location
    Pretoria
    Age
    47
    Posts
    445
    Thanked: 79

    Default Re: Arduino questions

    Jaco

    Isuzu KB300 DMax D/C 4x4 3" Homemade lift, Bosvark LFR Radio and free-wheel hubs.

  16. #15
    Join Date
    Oct 2016
    Location
    Roodepoort
    Posts
    1,443
    Thanked: 1219

    Default Re: Arduino questions

    Quote Originally Posted by SBSP View Post
    Click image for larger version. 

Name:	ard.png 
Views:	105 
Size:	382.3 KB 
ID:	603045
    If I remember correctly a 7805 regulator will take up to 36V and you (may need) ‚Äč WILL NEED a heatsink.
    [Edit] if you consider using the Wifi route I could help. Can even 3d print a nice enclosure for you.
    Fixed that for you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •