does the board contains thermal sensor(s) ?

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Re: does the board contains thermal sensor(s) ?

Postby bszente » Mon Jun 02, 2014 11:13 am

Thank you Dr.BeauWebber for the link.

At last, I received the fan and heatsink. For "safety" I installed a heatsink on Epiphany as well. Here is the board with the fan mounted:
fan.jpg
Parallella board with fan
fan.jpg (65.24 KiB) Viewed 2204 times

The result:
Code: Select all
# uptime && ./ztemp.sh
 10:27:52 up  1:07,  4 users,  load average: 1.06, 1.06, 1.00

Zynq Temp: 58.6 C / 137.4 F

After 1 hour of Mandelbrot and Firefox + Youtube the temperature was ~58C, which is pretty nice. The fan is blowing towards the heatsinks. Problem solved 8-)
bszente
 
Posts: 16
Joined: Mon Dec 17, 2012 3:24 am
Location: Targu Mures, Romania

Re: does the board contains thermal sensor(s) ?

Postby kloetzl » Fri Apr 03, 2015 7:54 pm

Building upon ubii's ztemp.sh, I created the following zsh prompt. It displays the current temperature to the right of the command line. Just add the following lines to your theme.

Code: Select all
prompt_right() {
  local sensor raw offset scale ctemp

  sensor='/sys/bus/iio/devices/iio:device0/'
  raw=$(cat $sensor/in_temp0_raw)
  offset=$(cat $sensor/in_temp0_offset)
  scale=$(cat $sensor/in_temp0_scale)

  ctemp=$(( ($raw + $offset) * $scale / 1000 ))
  echo ${ctemp:0:4}
}

RPS1='$(prompt_right)°C'


If people find this useful, I am sure there is a way to do this is bash.
kloetzl
 
Posts: 3
Joined: Sat Mar 28, 2015 8:43 pm

Re: does the board contains thermal sensor(s) ?

Postby olajep » Tue Apr 28, 2015 2:25 pm

Note to self / for future reference:

More general, should hopefully always work

Code: Select all
#!/bin/bash
dir=$(dirname $(grep -rl xadc /sys/bus/iio/devices/*/name))
raw_file=${dir}/in_temp0_raw
offset_file=${dir}/in_temp0_offset
scale_file=${dir}/in_temp0_scale

raw=`cat ${raw_file}`
offset=`cat ${offset_file}`
scale=`cat ${scale_file}`

c_temp=`echo "scale=1;(($raw + $offset) * $scale) / 1000" | bc`
f_temp=`echo "scale=1;(($c_temp * 9) / 5) + 32" | bc`

echo
echo "Zynq Temp: $c_temp C / $f_temp F"
echo

_start = 266470723;
olajep
 
Posts: 121
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Re: does the board contains thermal sensor(s) ?

Postby fsalerno74 » Fri Jul 03, 2015 9:09 pm

Hi folks.
thank you all for the precious help, i found the script very useful.
I'm new to the parallella world, just received the board today!

i found really useful the script because i started connecting via Win the board and cant use the graphic interface.

with the heatsink provided i recorded pretty high temp even with idle board - 76°C.
zynq temp up no fan.JPG
with heatsink only.
zynq temp up no fan.JPG (10.78 KiB) Viewed 1631 times


i found some interesting post using a 5v fan but i'm not confortable with soldering..

so i used an old small case fan - 12v - connected to the pc power.

temperature dropped to 55.7 °C at idle.
zynq temp up 12v fan.JPG
with 12v fan
zynq temp up 12v fan.JPG (9.11 KiB) Viewed 1631 times


tomorrow i'll use an old 12v adapter from a notebook to make a dedicated power supply.
i'll also try the improved scripts.

sorry if i posted in the wrong place! noob deserve some patience :P

best regards.

FS.
fsalerno74
 
Posts: 3
Joined: Fri Jul 03, 2015 8:59 pm

Previous

Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: Bing [Bot] and 3 guests