Show Posts
Pages: 1 2 3 [4] 5 6 ... 12
46  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: January 04, 2007, 11:22:19 am
Quote
The solution is to not let the external pull-up bring the pin high after the low period of the final bit of the 0x44 is written, force it high with the output driver. Then after the 750ms conversion period passes flip the pin back to an input and let the external pull-up take over.


Do you use the same pin for this? In yerg2k's code I bring the pin high immediately after the ds_writebyte(0x44) function. But it still  doesn't work. I was wondering if it maybe takes too much time to finish the ds_writebyte() function and that you are doing someting different with an additional pin.


Quote
You almost certainly have a DS18S20P on your hands.
Hmm, overlooked this one but indeed I have the DS18S20P. So far I still couldn't find what I am doing wrong. I am using the 750 uS delay after the 44h write, then pulling the pin high. Why don't I see what's going wrong?
47  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: January 03, 2007, 03:21:31 am
That's good news jims! How do you connect the DS18S20? I have a resistor between +5V and the data pin. I found this somewhere in the avrfreaks forum.
48  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: December 23, 2006, 01:16:20 pm
Quote
The datasheet isn't very clear and straightforward in describing when "Skip ROM" can be used.

No,  they mention it is possible with only one slave on the bus. See page 9 "SKIP ROM", in the DS1820 datasheet.  (you can follow your own link tot the datasheet)

I searched around on avrfreaks.net to see if there are similar problems. I couldn't find anything useful. I thought I read something about a similar problem.

Would the problem be on timing? How long will the temperature be in the scratchpad? Or would it take more time to finish writing it to the scratchpad than you wait with the while(pres=0) loop?
49  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: December 23, 2006, 10:27:28 am
Well, unfortunately it doesn't work for me either. But, at least I understand why my code didn't work.

I Keep getting the same line:
"AA 0 4B 46 FF FF C 10 87"
The only thing I changed in the code was adding a ds_reset() at the start of the loop(void). But it didn't make any difference. I tried a "read rom", (33h) command. Then the 64bit ROM code is read from the scratchpad. So, that works.
As you stated in the comment after the CONVERT (44h) command this probably doesn't work.
50  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: December 20, 2006, 02:25:12 pm
I tried to get a DS18S20 working but didn't get any further than the reset. That seemed to work but I never got any data from the sensor. I played around with the timing values but that didn't help me. The delayMicrosecond function seemed to work ok as far as I could measure it with my scope. So I guess filling in the delay's as mentioned in the datasheets should work.

Do you want to share your code? Or at least a read function?
51  Forum 2005-2010 (read only) / Interfacing / Re: Serial Interface with Processing and Dataflash on: March 06, 2008, 03:24:06 pm
It has been a while since I used the dataflash library. It worked for me but..... at some point I discovered that buffer 2 wasn't working. Well, the buffer worked, but storing from buffer 2 into memory didn't.

Something else: I see "lastBufferUsed%2" is that was is really in your program, with the percentage sign?

I would suggest to try to upload some know data like the alfabet or just a known sequence. If you can read this back by sending it over the serial port the problem is probably somewhere else.
52  Forum 2005-2010 (read only) / Interfacing / Re: Arduino GCode Interpreter on: March 01, 2008, 03:38:33 pm
Very nice work! Can you use 3 axis at the same time with this setup? So, do a real 3D movement? Not that it would be of any use for the reprap. But it might be nice if you could use it for a normal milling machine.

I should really start building a reprap. All these different, but very interesting, disciplines come together with it.


53  Forum 2005-2010 (read only) / Interfacing / Re: Original 8bit LCD example problems on: November 06, 2007, 04:39:18 pm
I thought it was mentioned on the forum before but I couldn't find it. My best guess is that you have to  change the int's in void pinMode(int, int) to uint8_t.
54  Forum 2005-2010 (read only) / Interfacing / Re: Help!Help! Serial portname on: November 04, 2007, 02:17:32 am
there is no need for crossposting.
55  Forum 2005-2010 (read only) / Interfacing / Re: dallas temp sensor review and help / (one wire on: September 16, 2007, 02:52:59 pm
This is a quote from jims: (2nd page of 1-wire topic)
Quote
I have the grounds connected, the DQ pin on the DS18S20P connected to the pin of the Arduino, and a 4.7kohm resistor from DQ to +5v as the pullup. It is good to connect the Vdd pin of the DS18S20P to ground also so if you get a non-parasite version (DS18S20) it will also work in parasite mode.

Try to use the sensor in parasite mode. Isn't the difference between B20 and S20 described somewhere in the datasheets?
56  Forum 2005-2010 (read only) / Interfacing / Re: Inconsistent serialprint on: September 25, 2007, 04:32:41 pm
4 characters in a loop,  just a serial.println in the loop function:
void loop()
{
Serial.println("1234");
}
Just to make sure that the connection is ok.
57  Forum 2005-2010 (read only) / Interfacing / Re: Inconsistent serialprint on: September 22, 2007, 06:40:13 pm
Did you try sending the same 4 characters in a loop? So you can see if arduino is sending exact 4 characters or that your serial terminal on the pc side messes things up. What do you use for reading? The arduino IDE?
58  Forum 2005-2010 (read only) / Interfacing / Re: Seperating bytes from Processing over serial on: September 22, 2007, 02:33:31 am
Why not send a line with x and y value and a newline character? So every line only has x and y value. Hmm, but you still need to separate on a space. Ok, the code below is a piece from a gps program. It replaces comma's with the 0's. So instead of one long string I have a bunch of strings after each other.

Code:
int gpsLine_size = strlen(gpsLine);
while((gpsLine[i]) && (i<gpsLine_size))
            {
              if(gpsLine[i] == ',')
              {
                commacount++;
                gpsLine[i] = 0;
                i++;
                  if (commacount == 1) timePtr = &gpsLine[i];
                if (commacount == 2) latPtr = &gpsLine[i];
                if (commacount == 4) lonPtr = &gpsLine[i];
              }
              else i++;
            }
In your case, if you have a space between the values you can replace this by a 0 and create a pointer to the next character. So, something like this:
Code:
xPtr = &xyline[0];
while( i< strlen(xyline)
{
    if (xyline == ' ')
    {
         i++;
         yPtr = &xyline[i];
     }
     else i++;
}
Just typed in the code, didn't check it. It is only for insipiration.  smiley
59  Forum 2005-2010 (read only) / Interfacing / Re: ArduinoBT using the CALL function on: August 30, 2007, 02:09:02 pm
Quote
Hey all,

at this moment I'm working on a tutorial with as topic using the ArduinoBT module.
In this tutorial I will show how to use commands like call, list, inquiry, select and close.

Can somebody tell me where I can post this tutorial?

Gr... Arjen

In the playground of course. But you have to make a new account for it. But please do. There is so little info about the arduino BT.
60  Forum 2005-2010 (read only) / Interfacing / Re: ArduinoBT using the CALL function on: August 30, 2007, 02:07:49 pm
Quote
hi bigengineer!

that thread is a great help. thanks!
But could you please confirm, that your SET-request program works on a standard configured arduinobt board?
On my board I see "+++SET+++" when starting the SET request. So the escape sequence is ignored and I don't get feedback.
Could you also confirm, that on an original configured arduinobt board, the escape seqeuence is enabled? I'm really wondering here, because in the arduinobt init sktech it says "SET CONTROL ESCAPE - 00 1" which means no escape sequence is enabled accroding to the iWrap user manual.
You are right, you have to change the SET CONTROL ESCAPE. You can use the init sketch for it. You can also  put in the setup() loop, but then you always have to wait for the delays.

Quote
Even when I'm direct (serial-usb) connected to the Bluegiga chip I don't get an output with "SET".
(And I also ran the Init Sketch to reset all original settings - just to be shure)
Maybe I screwed some setting up... (the ECHO command setting seems ok smiley-wink )
Strange, I have never tried it that way. But I think it should work. Do you get any respons from the BT? After a reset for instance?

Quote
Could someone please post the default output of the "SET" comand on arduinoBT?
I think this would be very good for the arduinobt documentation page.

How is this helpful you think? It only outputs some of the parameters.
Pages: 1 2 3 [4] 5 6 ... 12