Go to advanced search

by yoyojacky
Thu Sep 10, 2020 6:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How can I read 2 consecutive bytes
Replies: 8
Views: 1938

Re: How can I read 2 consecutive bytes

// RAM #define MLX90614_RAWIR1 0x04 #define MLX90614_RAWIR2 0x05 #define MLX90614_TA 0x06 #define MLX90614_TOBJ1 0x07 #define MLX90614_TOBJ2 0x08 // EEPROM #define MLX90614_TOMAX 0x20 #define MLX90614_TOMIN 0x21 #define MLX90614_PWMCTRL 0x22 #define MLX90614_TARANGE 0x23 #define MLX90614_EMISS 0x24 ...
by yoyojacky
Thu Sep 10, 2020 6:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How can I read 2 consecutive bytes
Replies: 8
Views: 1938

Re: How can I read 2 consecutive bytes

BTW, plesase refer to this : https://pypi.org/project/PyMLX90614/#description
but i found there is something wrong with the function name, so I change the code as my post before.
by yoyojacky
Thu Sep 10, 2020 5:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How can I read 2 consecutive bytes
Replies: 8
Views: 1938

Re: How can I read 2 consecutive bytes

you can try to read it from 0x07 and 0x08, which is read from datasheet of MLX90614. so, this is my python demo code: you need install mlx90614 library via : pip install mlx90164 and then copy following code to a file named : read_temp.py from smbus2 import SMBus from mlx90614 import MLX90614 import...
by yoyojacky
Tue Jul 14, 2020 5:09 am
Forum: General discussion
Topic: Getting External CD/DVD Drive to Work on Raspberry Pi?
Replies: 21
Views: 24618

Re: Getting External CD/DVD Drive to Work on Raspberry Pi?

you may need to use this command to make sure it has been recognized by your Pi. lsblk if you see sr0 or sr1 device, it is your CD-rom. dmesg | grep sr0 it works as the same of lsblk command. * How to mount the device ? sudo mount -t iso9660 /dev/sr0 /mnt -v * How to eject device? At first, you need...
by yoyojacky
Thu Jul 25, 2019 6:45 am
Forum: Troubleshooting
Topic: Raspberry Pi 4 temperature
Replies: 601
Views: 343420

Re: Raspberry Pi 4 temperature

Hi guys,
I've got an ICE tower cooling fan for my raspberry Pi 4B.
https://www.ebay.com/itm/173962045147
and the temperature can be reduce almost 30°C
when I using stress -c 4 or sysbench, I found that the temperature will remain in +/- 44 °C ,
and it works fine~
by yoyojacky
Wed Mar 06, 2019 7:10 am
Forum: Raspberry Pi OS
Topic: FBI Image Tool Permission Issue
Replies: 10
Views: 14188

Re: FBI Image Tool Permission Issue

try this :
sudo fbi -T 7 -d /dev/fb0 whatevernameofyourpictures.img
it works fine to me~
by yoyojacky
Wed Mar 06, 2019 7:09 am
Forum: Raspberry Pi OS
Topic: FBI Image Tool Permission Issue
Replies: 10
Views: 14188

Re: FBI Image Tool Permission Issue

you may try using "ps aux |grep tty " to see what console x11 will be running in, and then using the -T option. pi@raspberrypi:~ $ ps axu |grep tty root 383 0.0 0.3 5880 2900 tty1 Ss 11:00 0:00 /bin/login -f root 384 0.0 0.2 4376 1936 ? Ss+ 11:00 0:00 /sbin/agetty --keep-baud 115200,38400,9600 ttyAM...
by yoyojacky
Thu Jun 14, 2018 9:01 am
Forum: Automation, sensing and robotics
Topic: TF Mini LiDAR Help
Replies: 5
Views: 6006

Re: TF Mini LiDAR Help

You can try to using this library: tfmini typing this command in your terminal: pip install tfmini and then edit a file called mytfmini.py with following codes: from __future__ import division, print_function import time from tfmini import TFmini # create the sensor and give it a port and (optional)...
by yoyojacky
Wed Mar 25, 2015 7:28 am
Forum: Beginners
Topic: attaching a SPI OLED to the Raspberry Pi 2
Replies: 2
Views: 938

Re: attaching a SPI OLED to the Raspberry Pi 2

BTW, the binary file name must be "1024"
because the code contain the file name "1024" , and this file must be a data type file . like binary file .
you can use avisynth to make this file available.
by yoyojacky
Wed Mar 25, 2015 7:23 am
Forum: Beginners
Topic: attaching a SPI OLED to the Raspberry Pi 2
Replies: 2
Views: 938

Re: attaching a SPI OLED to the Raspberry Pi 2

if you are using wiringPi liberary, please use this command to add module : #gpio load spi you can touch a file , and input this code : #include <wiringPi.h> #include <wiringPiSPI.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <time.h> unsigned char initco...
by yoyojacky
Wed Mar 18, 2015 3:08 am
Forum: Beginners
Topic: Resetting while shutting down
Replies: 5
Views: 1191

Re: Resetting while shutting down

it may crash your file system on your Pi. I suggest that execute this command before you reboot .
# sync
then you can reboot freely ...LOL
# reboot
short Pin6 is not a good idea .. :o
by yoyojacky
Tue Apr 08, 2014 7:22 pm
Forum: Staffroom, classroom and projects
Topic: Rpi as 2nd screen in classroom
Replies: 5
Views: 2934

Re: Rpi as 2nd screen in classroom

You can try nc command.
by yoyojacky
Tue Apr 08, 2014 5:47 pm
Forum: General discussion
Topic: [help]How to use MPU6050 module?
Replies: 2
Views: 1275

[help]How to use MPU6050 module?

Hi there!
I have a plan to connect MPU6050 module to my raspberry Pi with gpio pins, but I do not know how to get the information from the this module, should I make a program in Python?
by yoyojacky
Mon Jan 13, 2014 8:07 am
Forum: Other languages
Topic: 中文-simplified-chinese
Replies: 90
Views: 365668

Re: 中文-simplified-chinese

支持!强烈支持!
沙渺,一起搞起来呗。
by yoyojacky
Mon Dec 09, 2013 9:07 am
Forum: Advanced users
Topic: PI4J: How to dynamically read and send data from one pin?
Replies: 2
Views: 1099

Re: PI4J: How to dynamically read and send data from one pin

try wiringPi liberaries ? maybe it can help....
by yoyojacky
Mon Dec 09, 2013 9:04 am
Forum: Other languages
Topic: 中文-simplified-chinese
Replies: 90
Views: 365668

中文-simplified-chinese

咱也开个中文的帖子,大家讨论起来!
by yoyojacky
Mon Jun 24, 2013 6:58 am
Forum: Media centres
Topic: Deathly Slow Speeds as a Media NAS
Replies: 35
Views: 49232

Re: Deathly Slow Speeds as a Media NAS

1. which brand is your SD card ? what type is that card ? my SD card is sandisk Ultra 30MB/s Class10 , the class4 is slow than class 10 2 . what's protocol is available on your router ? I recommend using 802.11n, it can reach 300MB/s speed.. 3. my laptop is based on CentOS6.2, my pi use nfs server s...
by yoyojacky
Sun Jun 23, 2013 4:37 pm
Forum: Pidora / Fedora
Topic: No updates with YUM
Replies: 9
Views: 9740

Re: No updates with YUM

I used to use this command: # yum clean all && yum -y update if you can not ping some web site by domain name ,you'd better check /etc/resolv.conf 's content, inside maybe like this : nameserver 8.8.8.8 nameserver 9.9.9.9 nameserver 6.6.6.6 and also you can use this command to check if you can reslo...
by yoyojacky
Sun Jun 23, 2013 4:27 pm
Forum: Beginners
Topic: Startup code
Replies: 3
Views: 1067

Re: Startup code

hi, you'd better use sudo to execute that command, but also i found a problem that, I tried making a alias for vim.tiny command, i.e [pi@RaspberryPi ~]$ sudo alias vim='vim.tiny' and then i put that paraghraph to /etc/rc.local file , and tried rebooting my pi, but when I login to system, typing vim ...

Go to advanced search