Show Posts
Pages: 1 ... 57 58 [59] 60 61 ... 100
871  Using Arduino / Networking, Protocols, and Devices / Re: arduino IDE serial not sending carriage return still ?? on: September 17, 2012, 03:23:20 am
Quote
, but it doesn't matter because you can use a real terminal program.

OK I have installed the freeware Terminal.exe  which looks cool.

I have the SIM20 module connected to NewSoftSerial pins 14 and 15 on the arduino, so  I have removed the 328 chip from its socket, and bridged the RX and TX accross to the SIM20 Rx and Tx.  and linked the data/command pin to ground

I have set all the coms as per the SIM datasheet ( 9600,8,1, none ) and I think if I just send a CR/LF it should say OK, but I get nothing.

I tried sending a few query AT commands, but only the one light on the arduino board flickers, and no reponse.

Am I missing something obvious again ?



872  Community / Bar Sport / Re: red and black wires can go anywhere right ? on: September 16, 2012, 12:21:17 pm
Been married 25 years  and havnt regretted one day of it, that day was 15th June 95......
873  Community / Bar Sport / Re: red and black wires can go anywhere right ? on: September 16, 2012, 07:56:30 am
I dont think he will do it again, and as I say, I can make a plan, either with a polarised connector , or better still an enclosed ( to avoid corrosion in the tropics ) relay to only connect with the right Polarity.

I will fix up the units, and the guy will owe me BIG time, and his boss will be grateful to me, so what the heck,  I dont want to get all grumpy about it  :-)
874  Community / Bar Sport / Re: red and black wires can go anywhere right ? on: September 16, 2012, 06:16:22 am
What,  let him kill the guy ?
875  Community / Bar Sport / Re: red and black wires can go anywhere right ? on: September 16, 2012, 04:00:42 am
Quote
Let his boss kill him.

LOL,    I will still have to fix it up though, there is a big order next I hope ....
876  Community / Bar Sport / Re: red and black wires can go anywhere right ? on: September 16, 2012, 03:56:42 am
Unfortunately I am running the 12v psu at 13.8 ( flat out ) to get the 18mA through the LEDs, I cant afford the Vf drop.  ( and there was no time to get another 6 power supplies )

But saying that, these Meanwell PSUs have an excellent trip cct, I left one on all night with a dead short on the DC plug, and it was fine in the morning, hardly warm, so perhaps I can put a diode accross the input on the PCB.

If its consumer struff, I try and make it idiot proof, but these guys make and wire up lightboxes all the time !

Next batch I will fit a plug and socket for connecting the DC, but I dont like to have more contacts if I can help it.


877  Using Arduino / Networking, Protocols, and Devices / Re: arduino IDE serial not sending carriage return still ?? on: September 16, 2012, 03:35:07 am
Hmmm   Teraterm says its installer files are corrupt ...
878  Using Arduino / Networking, Protocols, and Devices / Re: arduino IDE serial not sending carriage return still ?? on: September 16, 2012, 03:32:36 am
Thanks guys,  I am downloading the teraterm, and I guess I can also use IDE 1.0 to set the module.

I havnt changed over to 1.0 yet as it looked a little confusing....
879  Community / Bar Sport / red and black wires can go anywhere right ? on: September 16, 2012, 03:29:39 am
After several weeks of making 36 LED display panels, and delivering them on time ( with a million headaches on the way )  I connected one set of 6 up to the decoder and power supply, to show them how it works.
I was so pleased to have this monkey off my back.
Saturday morning I get a call to say that they had connected another 6 up, and the magic smoke was let out from all the chips, just to make sure, they connected another panel, and sure enough, the magic smoke again.

I went to the factory, and sure enough, they had connected the it up and it hadn't worked because they had the shift reg in plug going to the socket that says out and vice versa -  which is perfectly harmeless.

Because it didnt come on, the guy thought that perhaps I had the red and black wires to the DC power supply mixed up, so he swapped them over  ..................

So now I have to find 35 TPIC6B595s ,  and  an ATmega 328, in a hurry before his boss kills him !
880  Using Arduino / Networking, Protocols, and Devices / arduino IDE serial not sending carriage return still ?? on: September 16, 2012, 02:49:22 am
I am trying to set up one of a pair of SIM20 transceivers to go into sleep mode ( it is in a battery powered remote control )

I initially used them in transparent data mode with an on/off switch, which was OK for the first project, but now I want the transmitter to wake up and transmit quickly - almost as fast as the arduino that is driving it comes awake.

I have always used simplex 433Mhz modules, with VirtualWire, so these transceivers and their control is all new to me.

The documentation is terrible for a newbie, but it looks like I can switch the module to command mode, and send an AT command to set it to run in sleep mode, and then hopefully it will remember that when it is powered up again in data mode ( as opposed to command mode )

I have done quite a bit of searching and found several posts that state that I shouldn't use Arduinos IDE serial for sending AT+ commands as it doesn't send the required <CR>         
Is this still true ?   ( I am using IDE 22 ) 

They say I should rather use another program, but presumably then I would have to use a RS232 converter ?   

There seem to be many examples of people using  /n  for CR,  and the SIM20 command reference says you could use 0x0D  ?

I have the module hooked up to an ardunio board ( on 3v3 ) and level shifter resistors,  to experiment with,  I have thrown together this below to see if the AT command does anything ( with no attempt at buffering the response data )

When I run it, I get back:-

setup
 something available
13             (  I must still work out how to parse the reponses as they are different lengths )

So the AT command is doing something then.    However when I tried sending the command to put the unit in sleep mode  AT+SDREPS=1   ( to be woken by any data on the uart )  it doesn't seem to do anything,  (and the current stays at 18mA )

There is a development board available for these modules, but its not really in my budget at the moment.

Am I wasting my time trying to send one command?  or should I buy the Development board.

The application notes and commands are

http://wm.sim.com/downloaden.aspx?id=2840
http://wm.sim.com/downloaden.aspx?id=2729







Code:
  #include <NewSoftSerial.h>
      #define RXPIN 14 //   
      #define TXPIN 15 // not connected
        NewSoftSerial SIM(RXPIN, TXPIN);
     #define SIMBAUD 9600
//#include <VirtualWire.h>
int  serIn; 
int CD2Pin = 17;

void setup()
{    Serial.begin(9600);
  Serial.println("setup");
  pinMode ( CD2Pin, OUTPUT);
  digitalWrite( CD2Pin, HIGH ) ;
  SIM.begin(SIMBAUD);
 
   digitalWrite( CD2Pin, LOW ) ;

    SIM.print("\r\n"); 

  SIM.print("AT+SRDFIRM?");

    SIM.print("\r\n");

     if (SIM.available() > 0) {   // get incoming byte:   
     Serial.println(" something available ");
 serIn = SIM.read () ;
      Serial.println(serIn );
     
     digitalWrite( CD2Pin, HIGH ) ; 
     } 
    }


void loop ()
{
}  //  end of loop


881  Community / Bar Sport / Re: As people seem to occasionally mention things like this.. on: September 15, 2012, 08:06:30 am
Like millionaires, they are ten a penny now ..
882  Community / Bar Sport / Re: Your latest purchase on: September 15, 2012, 12:55:15 am
Thats a neat idea Nick !  literally .
883  Community / Bar Sport / Re: L.E.D. Zeppelin on: September 15, 2012, 12:04:54 am
Very discrete...
884  Community / Bar Sport / Re: Neil Armstrong is dead on: September 14, 2012, 02:00:32 pm
I love the Gorsky story too,

and all British Astronauts refer to a flag being half-mast  :-)

And our own  South African Astronaut, Mark Shuttleworth, who flew with the russians as a paid passenger, assures me it is "1/2 мачтовых"
885  Development / Suggestions for the Arduino Project / Re: Interest in overhauling the IDE user interface? on: September 14, 2012, 10:25:37 am
Perhaps it was the quaint offpitch terminals pins that swung it :-) ,  whatever it was it got me out of 40 years of designing with 4000 series logic !

I still havn't got onto v1 yet, too put off by changes to libraries that I dont understand..
Pages: 1 ... 57 58 [59] 60 61 ... 100