author
1Instructables7,850Views13CommentsNew ZealandJoined August 12th, 2016

Tell us about yourself!

Complete Your Profile
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    A lot has happened in the Arduino world and I have learnt a bit too since I made this instructable. You can buy a couple of NRF24L01 modules for a couple of bucks from ebay. This would be a much better solution with no library issues at a very similar price. I'm in the process of making a remote controlled car using NRF24L01 modules and Arduino nano - instructable coming soon - maybe...

    View Instructable »
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    How do you know whether it is sending only the first two bytes? Did you use Serial.print as I suggested? There is no point to guessing what is happening in the code - just use Serial.print to find out what is actually happening.

    View Instructable »
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    Hmmm... The example I gave is such that you need to pass an additional parameter. I'll leave it to you to work out what you should pass in that parameter/

    View Instructable »
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    I presume you have a roll, pitch and yaw. I would be inclined to use an additional arduino at the receiver. I was just wanting to see if this could be done with only 1 Arduino at the receiver end. What I have shown is that it can be done but it's not the best technique. The movement is jerky due to all those delays + time taken to attach/detach. Have a look at this instructable that I referenced earlierhttps://www.instructables.com/id/How-to-build-433-MHZ-RC-to-control-servos-100-Ardu/===I'm not sure that the check is even valid in my original code but change (message[7] ==0) to (message[6] == 0).You can use Serial.print as a debugging tool. You don't need to write 3 functions that do basically the same thing. E.g. instead of your 3 decode functions you can have one:void decode(byte * e...

    see more »

    I presume you have a roll, pitch and yaw. I would be inclined to use an additional arduino at the receiver. I was just wanting to see if this could be done with only 1 Arduino at the receiver end. What I have shown is that it can be done but it's not the best technique. The movement is jerky due to all those delays + time taken to attach/detach. Have a look at this instructable that I referenced earlierhttps://www.instructables.com/id/How-to-build-433-MHZ-RC-to-control-servos-100-Ardu/===I'm not sure that the check is even valid in my original code but change (message[7] ==0) to (message[6] == 0).You can use Serial.print as a debugging tool. You don't need to write 3 functions that do basically the same thing. E.g. instead of your 3 decode functions you can have one:void decode(byte * encoded, int & decoded, int idx ) { decoded = (short)(((encoded[idx+1]) & 0xFF) << 8 | (encoded[idx]) & 0xFF);}Fewer functions = fewer places for things to go wrong + less code to check.

    View Instructable »
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    The basics would be to send through a 6 byte array with 2 bytes for each pot. Do three reads instead of one in the loop. You will need to encode each of the 3 values in turn and then create the 6 byte array before sending that. At the other end the message will be 6 bytes long and you will decode each of the three sets of 2 bytes that correspond to the servos.

    View Instructable »
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    I know it compiles on version 1.6.5 of the Arduino IDE. You may be using a later version - I see that its up to 1.6.13. First try downloading 1.6.5 from https://www.arduino.cc/en/Main/OldSoftwareReleases#previous - it should work on that version. I've been busy making a DIY Raspberry Pi Arcade machine so haven't been keeping up on the Arduino side.

    View Instructable »
  • 2-Player Bartop Arcade Machine (Powered by Pi)

    My Version is called Yoshicade.The exterior is MDF I got for $3NZ, Screen $5NZ from https://www.facebook.com/Seagull-Centre-4647196369...Artwork by my Daughter

    View Instructable »
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    An error of conflicting declaration 'typedef uint8_t boolean' definitely means that this line of code is somewhere! typedef uint8_t boolean;Look carefully through the code till you find it and remove or comment it. Any instance of that code will cause that error since it is creating a definition that will conflict.

    View Instructable »
  • Arduino ServoTimer2 and VirtualWire 433MHz Receiver

    I used 1.6.5 Did you get the error: conflicting declaration 'typedef uint8_t boolean'If so, see the instructions above about editing ServoTimer2.h

    Yes you are right - I need to take more care about that if I post another instructable! The grey and yellow in receiver should be swapped - grey (servo) to 11, yellow (receiver) to 4. Green wire in transmitter sketch should go to pin 3.

    View Instructable »