Jump to content
 

Robin2

Members
  • Posts

    1,362
  • Joined

  • Last visited

Posts posted by Robin2

  1. 4 hours ago, Nigelcliffe said:

    But, I have no knowledge on R/C equipment.   So, need help making a shopping list. 

     

    So, what do I need to do a first vehicle ? 

     

    I am not aware of any "receivers" smaller than the Deltang products. I put the word "receivers" in quotes because the Deltang module is actually a combination of wireless transceiver, microprocessor and h-bridge for motor control.

     

    If you are going to use Deltang receivers then I would also recommend using transmitters recommended by Deltang. Apart from the Deltang units I believe some regular Spektrum RC transmitters can be used.

     

    I have built much cheaper "receivers" for my model trains but they are much bigger than the Deltang modules and would probably be too big for 00 scale road vehicles unless you could put them in, for example, a van body. My devices use nRF24L01+ wireless transceivers which are functionally similar to, but incompatible with, the Cypress devices used by Deltang.

     

    ...R

  2. You are missing some {} in your IF and ELSE statements. I think it should be like this

     

        if (val == HIGH) {
                // if "HIGH" step servo from min to max
            for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen = pulselen + SERVOSTEP) {
                pwm.setPWM(servonum, 0, pulselen);  delay (10); 
            }
        }
        else {
            delay(500); 
               //if "LOW" step servo from max to min
            for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen = pulselen - SERVOSTEP) {
                pwm.setPWM(servonum, 0, pulselen);  delay (10);
          }
        }

     

    I wonder if the delay(500) is in the correct place?

     

    The Arduino Forum may be a better place for this sort of question

     

    ...R

  3. If the PCDuino can boot from a USB stick you might like to try Puppy Linux . It is designed for low-resource PCs and can run entirely from a USB stick so you could try it without upsetting your existing system. I used TahrPup as my main operating system for quite a while - it is based on Ubuntu 14.04.

     

    I'm not sure that the newer XenialPup is well supported - it seems to me the momentum behind Puppy Linux had been lost. IMHO there was little point upgrading to  a newer version of Ubuntu if the main purpose is to support older hardware. All PCs from the last 4 or 5 years can easily support a complete Linux installation.

     

    ...R

  4. 1 hour ago, melmerby said:

    I assume that I can update the Kernel and the Distro, which should come first?

     

    I suggest you get advice on a Linux (Ubuntu) Forum before doing either in case your installation has some features specific to your unusual hardware that may not be in another version.

     

    ...R

  5. 3 hours ago, melmerby said:

    It has a "Synaptic" package manager which asks for a password when you try to use it.

    That's because you need super-user privileges to use Synaptic. I presume you created a password when you installed Ubuntu. If you can't remember it I don't know how you can discover it. Presumably you could re-install Ubuntu. Or you could install  a copy of Oracle Java without needing super-user privileges. However if you value your time an RPi might be the cheaper option.

     

    if you did not create a password then there may be a default password - worth Googling "ubuntu default password". Or maybe it is just "password", or just needs a carriage-return.

     

    ...R

  6. I would expect OpenSource Java to be installed as a normal part of Ubuntu. Have you tried typing java --version in your terminal?

     

    If not i should be possible to install it using the Ubuntu package manager. 

     

    On this Linux laptop I use Oracle Java downloaded from the Oracle website - but I don't know anything about the PCDuino hardware. At £18 there may in fact be "too little of a good thing" :)

     

    ...R

  7. I am not proposing to offer any ready-to-use product or even a kit.

     

    But if someone is interested in some DIY Arduino programming the opportunity is there to get a much lower cost per "receiver" together with a single "transmitter" for a large number of "receivers". The nRF24L01+ transceiver modules are about £2 each - probably much cheaper if bought from the far east. I control my model trains with one of them and an Attiny84 which costs less than £2. If using a servo for uncoupling then that is all you need. If you want to use a solenoid you would need a transistor to switch the solenoid current.

     

    An ESP8266 WiFi module (which can also be programmed with the Arduino system, and which does not have to use WiFi) has the advantage of the wireless and the microprocessor in the same product. I believe they can be very very parsimonious in their use of electricity when used intermittently but I have no experience of that as in the continuous mode needed for controlling a locomotive they use about twice as much power as the Attiny and nRF24.

     

    If people want an off-the-shelf ready-to-use product then it seems to me the Deltang system is good value. I certainly could not make that type of thing for that price on a commercial basis.

     

    ...R

  8. 1 hour ago, fallen said:

    Robin, I'd be interested in your ideas for IR as well.

     

    The project I built for an uncoupler in an N-gauge wagon used an Atmega Attiny 45, a TSOP 4838 IR detector, a 1S LiPo cell and a home-made electromagnet coil. I programmed the Attiny with the Arduino system and IIRC used an Arduino Uno with an IR LED as the transmitter.

     

    I just remembered that I wrote about it here

     

    ...R

  9. If you are prepared to do some fine soldering and some programming you could build a radio system that costs about £4 per unit :D  But they would not be as small as the Deltang units.

     

    With an IR system it would probably be down to £2 per unit.

     

    Would the lower price make a difference to your aspirations?

     

    ...R

  10. Thanks for all the great pics. A deltang receiver would make the project much too expensive for me.

     

    When I made my IR control I used a DIY electro-magnet to lift the DG coupling with a mechanism quite similar to yours. I had a lot of trouble getting enough magnetic pull but I think I know more about magnetic attraction now. I was trying to attract a steel wire whereas a piece of steel strip (having a much greater area) should be much more effective.

     

    ...R

  11. On 21/03/2019 at 16:54, Luke Palmer said:

    Has anyone here ever used Coding on a Windows Laptop to control Locos, points & accessories on their 00 gauge model railway layout?

     

    A few years back I wrote a program to send commands to a Hornby Elite DCC controller. IIRC it was a bit tedious figuring out how to form the XpressNet commands but, after that, it was straightforward.

     

    ...R

    • Thanks 1
  12. For an example of how to do non-blocking timing  have a look at how the code is organized in Several Things at a Time

    Note how each function runs very briefly and returns to loop() so the next one can be called. None of the functions tries to complete a task in one call. And there may be dozens of calls to a function before it is actually time for it to do anything.

     

    And see Using millis() for timing. A beginners guide if you need more explanation.

     

    ...R

    • Informative/Useful 1
  13. 11 hours ago, Phil Parker said:

     

    You made it clear that RMweb wasn't meeting your high standards for a web forum and you were off elsewhere. As I said in my reply, it gave me an opportunity to try the new admin tools on an account apparently no longer required. Be glad I opted for a few hours of moderation and didn't  push the new "Hide the body" button...

    I only suggested that I was thinking of looking elsewhere. I don't think Tesco throws their customer out when s/he wonders about the price of peas in Asda. :)

     

    In any case another of my Posts is still HIDDEN. I can't see any any numbers on Posts so I can refer you to its so this is the perfectly innocuous question again

    Quote

     

    I now know how to create an Activity Stream but I can's see how to delete the ones I don't want?

     

    In one of the Posts in this Topic there was a reference to FAQs but I can't find them, so sorry if this question is answered in the FAQs

     

     

    Thanks.

     

    ...R

  14. 6 minutes ago, robert17649 said:

    I am I am sure a serious Luddite. Thia "upgrade " is almozt cert`inly the province of internet nerds .

    Most of us are normal human beings who need simple easily followed sites  which the previous clearly out dated one was .

     

    There is an old adage which states if it works dont fix it so why did you fix it.? From now on I will observe from time to time and no more as I cant be bothered with overly clever internet stuff which shows no benefit and ius merely a demoonstration of the triumph of presentation over content.

    I am inclined to the same view.

    I must look about to see if there are any other model railway forums.

     

    ...R

×
×
  • Create New...