Show Posts
Pages: 1 ... 66 67 [68] 69 70 ... 100
1006  Using Arduino / Project Guidance / Re: use serial and newsoft together on: June 18, 2012, 02:40:06 pm
OK I will keep the printer on NewSoftSerial
1007  Using Arduino / Project Guidance / Re: use serial and newsoft together on: June 18, 2012, 08:22:29 am
That would be really cool,  I will try it tonight, thanks

1008  Using Arduino / Project Guidance / Re: use serial and newsoft together on: June 18, 2012, 08:11:19 am
Heres a snippet of my test that printed OK

Code:
#include <NewSoftSerial.h>
    #define RXPIN 14 //  
    #define TXPIN 15 //
    #define PRINTERBAUD 19200
NewSoftSerial thermal(RXPIN, TXPIN);

void setup ()
{
  thermal.begin(PRINTERBAUD);
}
vopid loop () {


 expcount ++;
thermal.print(0x1B,BYTE);             //ESC POS command
thermal.print('@');                   //ESC POS initialize followed after command
thermal.print (" EXPRESS TICKET NUMBER ");
thermal.print (expcount);
thermal.print(0xA,BYTE);  
1009  Using Arduino / Project Guidance / Re: use serial and newsoft together on: June 18, 2012, 07:43:46 am
Thanks lesto,

Thats a good idea, but the printer with Xon Xoff work with just TX ?  ( new ground for me )

I am not on IDE 1.0  I couldnt understand the changes needed to libraries,  I am starting to get used to the old IDE and they moved the goalposts !

I have hooked up the printer to NewSoftwareSerial. and the GPS to RXD, and thats working.

Now for the virtualwire test...
1010  Using Arduino / Project Guidance / use serial and newsoft together on: June 17, 2012, 10:30:27 pm
On my data logging project, ( I havn't got to the display and logging end yet )  I have got a thermal printer to print a queue number.

This bit is working fine with NewSoftSerial using pins 14 and 15.

I want to use a cheapy GPS receiver that I use on another project so that there are no time settings or drift.

On the other GPS project I also use NewSoftSerial ,  but have read that if you want to use 2 NewSoftSerial connections you have to call one at a time, which I might be capable of, but as the Atmega chip will be programmed on the Arduino board, and then plugged into another pcb , can I just connect the GPS Tx pin to the Atmega pin 2, ( RXD )  and use ( with the right baudrate for the GPS ) :-
if (Serial.available() > 0) {
    // get incoming byte:
    inByte = Serial.read();

I only need the basic default sentance from the GPS, so I don't bother connecting the GPS Rx pin ( which would need voltage buffering as the receiver runs on 3 v )

I only want to test for time from the gps every minute, ( or hour whatever ) just to keep the free running clock accurate.

I also want to use VirtualWire to transmit the data to the display on every event.

The question is , will these 3 comms systems clash ?     I think the newsoftserial is the only interrupt driven one?

And if I unplug the usb cable to the Arduino board after downloading the sketch, if I run the board on external 5v, can I connect to the RXD pin for testing without the USB chip affecting it?
1011  Using Arduino / Project Guidance / Re: general ideas for data logging system on: June 17, 2012, 10:09:08 pm
Thanks FestusHagen

Perhaps I will log directly to the sd card each event then.

Or try and get one of the frams locally

1012  Using Arduino / Project Guidance / Re: thermal printer interface ? on: June 16, 2012, 12:39:38 am
Thanks, thats it, I must change the handshaking to Xon Xoff I think for just using tx and rx lines,
 I have downloaded the software and must now try to set the software switch.  Unfamiliar ground here :-)
1013  Using Arduino / Project Guidance / Re: DS1307 misbehavior on: June 15, 2012, 04:14:37 pm
I agree with El Supremo, especially if there are relays in the same room !
Decouple the 5 volt supply with capacitors ( 100nF near any chip, and 47 mFd nearby ) and definately at least  470mFd on any relay supply  ( plus a diode across the relay coil - reversed polarity )

I can post a sketch if you need
1014  Using Arduino / Project Guidance / thermal printer interface ? on: June 15, 2012, 04:00:26 pm
I have got a posiflex PP6800 Serial thermal printer that I want to drive from a 328 chip.( an arduino D'nove board for testing )

I have built a RS232 interface to connect to the Arduino board, and am using NewSerialSoft using pins 14 and 15 for the Tx and Rx.

Can anyone suggest a simple sketch to test the comunication ?

I have tried the Tronixstuff sketch for the cheapy Chinese printer, but it does nothing,..

1015  Using Arduino / Project Guidance / Re: general ideas for data logging system on: May 31, 2012, 02:29:13 pm
Of course !  I keep forgetting CS as I never really  used it yet!
1016  Using Arduino / Project Guidance / Re: general ideas for data logging system on: May 31, 2012, 05:59:35 am
I  was a bit worried about a signal coming in while it was transferring data to the card.( I have found SD cards very temperamental )

I have the incoming call triggering an interupt on my existing part of the system, so I didnt know how this would work, I think I might try the Fram thing, it sounds pretty interesting.  Though I might run short of pins ,  can I have 2 different SPI outputs?   the display uses SPI
1017  Using Arduino / Project Guidance / Re: general ideas for data logging system on: May 31, 2012, 04:33:04 am
Thanks Terry

Yes the display is 7 segment, but the names of the queues I will print next to the display in vinyl.

I dont know how often they want to check the data, but as you say there is tons of room on a 2 Gb SD card ( I had trouble using larger with Arduino )

I think from one of the samples I saw that every time you write a CSV file, it saves it in a new batch, which will be fine, they can just copy the latest file.

I am ordering the printer today, theres a cute cheap one that Tronixstuff reveiwed and gave the sketch for, but it doesnt have a paper cutter :-(    which I need.

1018  Using Arduino / Project Guidance / Re: general ideas for data logging system on: May 31, 2012, 02:28:11 am
Thank Bob,   Wow  10000 posts ! you have been prolific, and a great help to our community.

I like those FRAMs that you linked to ( I must confess that I have been so busy in survival mode that I never get a chance to catch up on technology - which is why I am still using IDE 22 ! )

I think the Atmega could save a days worth anyway, I could get real miserly and save the queue type and teller number in one byte, and drop the date and seconds from the time served ( it must be the same day ) but it would be better to let them analys the data once a month if they wish.

I have thought of having a " backup" button for the supervisor to press to download to the card ( with a red light "do not remove card" while it is writing )

That way the buffer can carry on saving while he goes and dwonloads the data to his PC....

1019  Using Arduino / Project Guidance / general ideas for data logging system on: May 31, 2012, 12:35:02 am
I have looked at some of the data logging ideas, but just need some advice on when to actually save data to the SD card ( as opposed to saving evey second/minute etc )

I am working on a queueing system , with a LED display showing the numbers of the current ticket being served, and by which teller.
There are in fact two types of ticket, "orders"  O and "collections" C , both of which are displayed.
The tellers simply press their O or C button to serve the next customer and the next consecutive number for that type will be displayed.

The data I wish to log is      1;  the ticket number  1-999
                                      2;  the type of transaction ( O or C )
                                      3;  date/time ticket printed
                                      4; date/time ticket number is displayed
                                      5;  teller number who pressed the button.

It is not a high throughput system, perhaps 100 customers a day, so I am not sure that I want to save to the SD card every time a button is pushed.
I will have a small lead acid battery for the electronics ( not the LEDs ) so that the current ticket count is not lost during power outages.

Should I buffer the data and perhaps log every hour or so?  or every day?
I know you shouldnt remove the card while operating, so perhaps I should have a button for the manager to press before removing the card, that backs up the latest data, and then changes a LED from red to green to say it is safe to remove?

1020  Using Arduino / Project Guidance / Re: GPS clock almost working right - on: April 14, 2012, 11:14:20 am
Adding a 50 mS delay after the VW send command seems to have sorted it out,  I cannot remember when I removed it !

No that wasnt it either !

I am now puttting the free running timer in the display end, to take over if no gps received..
Pages: 1 ... 66 67 [68] 69 70 ... 100