Show Posts
Pages: 1 [2] 3 4 ... 25
16  Forum 2005-2010 (read only) / Forum / Re: "Best Platform" on: November 21, 2009, 09:56:27 pm
PhpBB3 :3
there are many usefull additional things that can be put into posting and so on.

EG: youtube and such embedded vids, hidden in spoiler like boxes so u dont get the vid box up if u dont want to see it.

I have made that a few times on some forums i done,
set up so u just put in the youtube vid code in the tags.

just a thought smiley-wink
17  Forum 2005-2010 (read only) / Troubleshooting / Re: piezo to midi code help wanted ! on: December 18, 2007, 03:05:53 pm
kool thnx smiley i'll see how it goes smiley
18  Forum 2005-2010 (read only) / Troubleshooting / Re: piezo to midi code help wanted ! on: December 18, 2007, 01:46:11 pm
I am planning to do the same kind of thing. does the same data that is transmitted to the serial Tx pin also get sent via the usb serial?
I plan on attaching my device (when i make it) to cubase via the usb (using usb serial midi port drivers)

i'm also a noob at this and dont know how to code it yet.. how would i make it into switches instead of peizos for a mini keyboard device?
19  Forum 2005-2010 (read only) / Interfacing / Re: gps to lcd on: October 07, 2009, 04:56:26 am
so far i have this, that a friend helped me cobble together:
Code:
/* gps to lcd 0.00.0
 * to read a packet from the gps, need nmea.h ?
  * take the required data, then print it to the lcd
 */
#include <NewSoftSerial.h>
#include "TinyGPS.h"
TinyGPS gps;

// Use NewSoftSerial for greater reliability
#define RXPIN 3
#define TXPIN 2

long lat, lon;
unsigned long fix_age, time, date, speed, course;
unsigned long chars;
unsigned short sentences, failed_checksum;

NewSoftSerial nss(RXPIN, TXPIN);

void setup()
{
  Serial.begin(38400);
  Serial.print("Ready..");
}

void loop()
{
  while (nss.available())
  {
    int c = nss.read();
    if (gps.encode(c))
    {
      // process new gps info here
      // retrieves +/- lat/long in 100000ths of a degree
      gps.get_position(&lat, &lon, &fix_age);

    }
 
  }
      Serial.print("lat");
      Serial.print(lat);

      delay(500);
      Serial.print("Long");
      Serial.print(lon);

      delay(500);
}

but due to not being able to get a fix on a single satellite while indoors i dont know if i am getting any info from the gps unit, so all i get on the serial monitor is "0" for long and lat..

im not sure but i may be able to use the hardware serial RX for the gps and the TX for debug to the pc?

once i know i am getting the info from the gps and can output that as i want, then i can work out how to get it onto an lcd..
no doubt there are any things i have done wrong so far smiley-lol

I am grateful for any help i can get on this smiley

(EDIT)

Really in need of some help here..

I been messing with trying to not use the soft serial cos my gps outs at 38400 baud. and im not sure newsoftserial works at that speed..

here is the code:
Code:
/* gps to lcd 0.00.0
 * to read a packet from the gps, need nmea.h ?
  * take the required data, then print it to the lcd
 */
#include <LiquidCrystal.h>
//#include <NewSoftSerial.h>
#include "TinyGPS.h"
TinyGPS gps;

// Use NewSoftSerial for greater reliability
// #define RXPIN 7
// #define TXPIN 6

long lat, lon;
unsigned long fix_age, time, date, speed, course;
unsigned long chars;
unsigned short sentences, failed_checksum;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// NewSoftSerial nss(RXPIN, TXPIN);

void setup()
{
 Serial.begin(38400);
 // Serial.print("Ready..");
  // set up the LCD's number of rows and columns:
  lcd.begin(16, 2);
  // Print a message to the LCD.

}

void loop()
{
  while (Serial.available())
  {
    int c = Serial.read();
    if (gps.encode(c))
    {
      // process new gps info here
      // retrieves +/- lat/long in 100000ths of a degree
      gps.get_position(&lat, &lon, &fix_age);

    }
 
  }
      // set the cursor to column 0, line 1
      // (note: line 1 is the second row, since counting begins with 0):
      lcd.setCursor(0, 0);
      // print the number of seconds since reset:
      lcd.print("lat"), lcd.print(lat);
    //  Serial.print("lat");
    //  Serial.print(lat);
      delay(500);
      
      // set the cursor to column 0, line 1
      // (note: line 1 is the second row, since counting begins with 0):
      lcd.setCursor(0, 1);
      // print the number of seconds since reset:
      lcd.print("Long"), lcd.print(lon);
    //  Serial.print("Long");
    //  Serial.print(lon);
      delay(500);
}

i commented out bits instead of deleting them

using soft serial and no hard serial my lcd looked like this:
Code:
lat0
long0
good cos thats the layout i was after.. but no gps data getting thru..

so i used hard serial and commented out all nss bit as in the code above and i get this in lcd:
Code:
latplong0
long0

why is hardware serial doing that?

and what am i doing wrong to not get the gps to either decode or display..

everything is wired up correctly.. hence why im posting in the software section..
20  Forum 2005-2010 (read only) / Interfacing / Re: gps to lcd on: October 07, 2009, 02:24:40 am
bTw thnx for the links kg4wsv smiley-wink
21  Forum 2005-2010 (read only) / Interfacing / Re: gps to lcd on: October 06, 2009, 05:20:57 pm
a friend threw this bit of code at me...
Code:
/* The char offset apparently: 1st line of packet..read down for offset
 * 18, 26, 30, 39
 * $GPGGA,000301.042,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0.0,0000*72
 *                   1       2   3        3
 *                   8       6   0        9
 */

int c;
int n = 0;
int packet_len = 396;   /* better check */

char lat[10];
float lat_f;

while(1) {
        c = Serial.read();
        if(n == packet_len) {
                n = 0;
                continue;
        }
        if(n >= 18 && n <= 26) {
                lat[n - 18] = c;
                if(n == 26) {
                        lat[9] = 0;
                        lat_f = float(lat);
                }
        }
        /* and similar for long */
}

hopefully i can workout what to do with it smiley-lol
22  Forum 2005-2010 (read only) / Interfacing / Re: gps to lcd on: October 06, 2009, 08:14:25 am
oh i forgot to mention smiley-lol i cant program worth a dang smiley-lol
23  Forum 2005-2010 (read only) / Interfacing / gps to lcd on: October 05, 2009, 03:41:00 pm
Hi I'm trying to get info from Haicom bluetooth gps to an arduino and then have the long and lat displayed on a 16x2 lcd.. (same type used in the liquidcrystal examples in the ide)

now the hardware isnt a prob.. hence why im in the software section smiley

My gps outputs ttl from a port on the back and that fires out these packets:

Code:
$GPGGA,000301.042,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0.0,0000*72
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05
$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7C
$GPGSV,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76
$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78
$GPRMC,000301.042,V,0000.0000,N,00000.0000,E,0.0,0.00,291006,,,N*4E
$GPVTG,0.00,T,,M,0.0,N,0.0,K,N*32
$GPGGA,000302.032,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0.0,0000*76
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05
$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7C
$GPGSV,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76
$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78
$GPRMC,000302.032,V,0000.0000,N,00000.0000,E,0.0,0.00,291006,,,N*4A
$GPVTG,0.00,T,,M,0.0,N,0.0,K,N*32
$GPGGA,000303.032,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0.0,0000*77
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05
$GPGSV,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7C
$GPGSV,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76
$GPGSV,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78
$GPRMC,000303.032,V,0000.0000,N,00000.0000,E,0.0,0.00,291006,,,N*4B
$GPVTG,0.00,T,,M,0.0,N,0.0,K,N*32

what i want to know is (before it gives me a headache trying to find out) how can i get the arduino to isolate the long and lat, then display them on the lcd..

also can I use another pin for the ttl input so i can still use the main serial pins for debug?..

thnx in advance :3
24  Forum 2005-2010 (read only) / Development / Re: Library for those annoying 12864 LCD screens on: December 31, 2009, 04:47:29 am
i got things working on the other library (ks0108glcd)

thnx anyway smiley-lol

is there a pong game or any other sketch available for the other lib?
25  Forum 2005-2010 (read only) / Development / Re: Library for those annoying 12864 LCD screens on: December 29, 2009, 02:03:33 am
I just got one of these screens for xmas from my GF smiley it came with a demo board with a pre-programmed pic16f57 on.

it was from Sure electronics, the demo board displays an alternating checkerboard on the lcd.

screen is WG12864A.

i downloaded the library from the wiki, installed it, and uploaded the pong sketch to a 168 on a boarduino, but im getting nothing,, the wiring instructions on the wiki were confusing at best.
 wiring pin3 up the same as i do with my 16x2 lcd's just gives me a blank screen. anyone got a schematic of wiring this type of LCD to an arduino properly?.. with less confusion smiley

would be nice to play pong again smiley-lol
26  Forum 2005-2010 (read only) / Scandinavia / Re: Nogen danskere ? on: June 16, 2009, 08:35:53 am
Jeg er engelsk, men bor i norge smiley
27  Forum 2005-2010 (read only) / Scandinavia / Re: er det norsk her fra Troms? on: January 25, 2010, 03:07:40 am
kools smiley
a fellow arduino person in town?
28  Forum 2005-2010 (read only) / Scandinavia / Re: er det norsk her fra Troms? on: July 03, 2009, 07:58:35 am
i take that as a no then smiley-sad
29  Forum 2005-2010 (read only) / Scandinavia / er det norsk her fra Troms? on: June 27, 2009, 05:33:01 am
min norsk er ikke bra..

anyone from Tromsø here? smiley (sorry for the engelsk, im learning norsk)
30  Forum 2005-2010 (read only) / Troubleshooting / Re: Need help, FAST (please) on: December 11, 2007, 10:31:06 am
Quote
Quote
I also ordered the "Arduino Diecimila compatible USB board complete KIT with pre-soldered FT232BL" from eBay..
I hope I don't have this problem while I'm messing with it :o

do you think i should order some spare ATMEGA168 chips just in case?  :-/ seeing as I am a total noob at Arduino, microcontrollers, and programming  smiley-grin

not that i don't understand what its about smiley
The Arduino/Freeduino are prototyping boards, and it means that a lot of bad things can happen to them while developing new electronics applications.  It is always a good practice to have a couple of spare atmega168's, maybe you want to keep one with a sketch programmed, or you want to deploy it using some barebone Arduino boards, etc.  I received only a couple of problem reports with the kits.  I burned an USB chip on a freeduino board just by placing the board on top of some wires by mistake, while it was connected... so a lot of things can happen to these boards while you are prototyping projects with them.

I'll bare that in mind. i'll have to make an anti-static surface to work on and keep my wires away from the underside smiley-grin
i'll prolly get more chips soon too just to make sure i have some spare for projects and emergencys smiley
Pages: 1 [2] 3 4 ... 25