Welcome, Guest
Username: Password: Remember me

TOPIC: Arduino problem in 5.6

Arduino problem in 5.6 3 years 3 months ago #10886

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Bill,

Tried to copy/past your sketch but can't compile in the Arduino software. Can you attach the one you are using right now?
By the way, why is the function sensors.requestTemperatures() 2 times in void loop() ?

The other thing is, are you using a 5V extern power supply or are you using the Arduino ?

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Arduino problem in 5.6 3 years 3 months ago #10887

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
marc wrote:
Hi Bill,

Tried to copy/past your sketch but can't compile in the Arduino software. Can you attach the one you are using right now?
By the way, why is the function sensors.requestTemperatures() 2 times in void loop() ?

The other thing is, are you using a 5V extern power supply or are you using the Arduino ?

/Marc

Hello Marc,

i did not write the code... i got it from guys on the proview forum (Claes i think?}
so i do not know about the function request 2 times...

and i am using 5V from the arduino to power everything...
but,
the proview has the same timing with NO wires connected,
or with my whole wiring setup connected...
So i doubt that the external wiring is doing anything to mess up the process or delay the timing...

i attach the arduino sketch , hopefully it will go through to you complete...

Thanks much!!
Attachments:
The administrator has disabled public write access.

Arduino problem in 5.6 3 years 3 months ago #10888

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Bill,

First of all I don't have a brewery wit 24 "sensors".

But I have :

- An old laptop
- Arduino UNO
- One DS18B20 / 4.7k
- Ubuntu 18.04.5 LTS
- Proview 5.7.1-1

I used/changed the attached sketch, Baudrate 9600 and deleted the "doubled function" sensors.requestTemperatures() .
Because I have only one DS18B20 I called the same address 24 times in the sketch, to try to simulate your problem.
To be honest I don't recognize your problem.
Scantime is 0.8 sec.

I have used onewire (OneWire-2.3.1) and DallasTemperature (DallasTemperature-3.7.2).
I have no idea if the DS18B20 has different ROM based versions on the market so I consider the function control logic for all DS18B20 to be the same.

What versions of onewire/dallastemp. did you compile against?

/Marc
Attachments:
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
Last Edit: 3 years 3 months ago by marc. Reason: attach problem
The administrator has disabled public write access.

Arduino problem in 5.6 3 years 3 months ago #10889

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
marc wrote:
To be honest I don't recognize your problem.
Scantime is 0.8 sec.

What versions of onewire/dallastemp. did you compile against?

/Marc

Marc,

THAT is the problem -- 0.8 sec scan time for you.
the same as me
I am getting a 0.8 scan time...

Proview sets it by default at 0.1 sec scan time, 100ms .
which is reasonable
but if you leave it at 0.1 scan time, then it just Crashes/
or does a time stretch error, where everything is 5 times longer than you set ... 30 sec timer ends up being 2 minutes...

Is that the nature of the problem dealing with DallasTempurature and OneWire??
Proview will only be able to scan 0.8 sec or longer??

If that is so, then i just have to bite the bullet and accept having a 1.6 sec scan time, like i have set it now

Any Ideas on how to speed up the processes??

i scanned against dallas temp 3.7.2
and Onewire 2.3.5

Thanks for all your help in replicating the same 0.8 scan time !! Your equipment and my equipment agree...

bill
The administrator has disabled public write access.

Arduino problem in 5.6 3 years 3 months ago #10891

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Bill,

Bite the bullet AND cross your fingers.
It's the nature of the DS18B20 (conversion time).
It's already incredible to run 25 DS18B20's, different Cat5 cables with length's from around 30 meters by using the 5V power rail of the Arduino and not by using an external power supply....

Stay safe,

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
Last Edit: 3 years 3 months ago by marc.
The administrator has disabled public write access.
The following user(s) said Thank You: brew

Arduino problem in 5.6 3 years 3 months ago #10895

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
okay cool

I will try and use an arduino DUE instead of the UNO, see if that speeds up the processing...

thanks for replicating my errors...
now i know i didn't screw up anything, that is just the way DallasTemp works...

Thanks Marc!!
The administrator has disabled public write access.
Time to create page: 8.682 seconds