Go to advanced search

by gauravsharma0190
Thu Dec 01, 2016 5:11 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1528

Re: 24lc1025 memory interfacing

In the first byte R/W must be setup properly (giving different address) of read and write because of the properties of the I2C bus. I think before you go further you should deeply study I2C bus specification and and the datasheet. Unfortunatelly I can not help you further because I did not use I2Cp...
by gauravsharma0190
Wed Nov 30, 2016 9:16 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I²C
Replies: 10
Views: 116940

Re: I²C

hey there i am using 24lc1025 eeprom ic which has address 0x50.
i used i2ctool and i2cset as
i2cset -y 1 0x50 0x00 0x00 0x21 i
and read it as i2cget -y 1 0x50 0x00
or using i2cget -y 1 0x50
but always seen 0xff.
when i seen resister usning i2cdump but all address is 0xff
plz give any solution
by gauravsharma0190
Wed Nov 30, 2016 5:50 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1528

Re: 24lc1025 memory interfacing

I never used i2ctools to program memories, however there are some information in the manual pages and the readme files. You can also googling. i worte something using i2cset -y 1 0x50 0x00 0x01 and read using i2cget -y 1 0x50 0x00 but nothing shows expect 0xff.i couldn't understand. here is the doc...
by gauravsharma0190
Tue Nov 29, 2016 11:21 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1528

Re: 24lc1025 memory interfacing

Yes address shoes as 50
now how to start write something on memory using i2ctool
by gauravsharma0190
Tue Nov 29, 2016 9:11 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1528

Re: 24lc1025 memory interfacing

First of all, which I2C port are you using. There are two 0 and 1. 0 has no pull-up resistors! 1 has the resistors but it makes sense to use two other 3k3 pull up. Check whether your I2C bus enabled in raspi-config and you are added to i2c group in /etc/group. If all this are OK you should see your...
by gauravsharma0190
Tue Nov 29, 2016 6:47 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1528

24lc1025 memory interfacing

hello there
i want to interface memory 24lc1025 1mb memory ic to my pi board
anyone has idea code how to use i2c and address in linux.
i am new in linux.
i used i2c tool and see many
address
by gauravsharma0190
Thu Sep 08, 2016 9:14 am
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 33882

Re: Qt with Wiring PI

Hello Gerard0315 , To access the GPIO generally you need root privileges. Find where your compiled program is. Open a terminal, cd to your program location. type:- sudo ./ yourprogname . Regards Not true any more. Add setenv("WIRINGPI_GPIOMEM", "1", 1); to your code and it will run without using su...
by gauravsharma0190
Thu Sep 08, 2016 9:02 am
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 33882

Re: Qt with Wiring PI

void MainWindow::on_Camera_clicked() { QPixmap p("1.jpg"); using namespace cv; using namespace std; wiringPiSetup(); pinMode (0, OUTPUT) ; digitalWrite (0,1) ; ui->label->setPixmap(p); VideoCapture cap(0); // open the default camera cap.set(CV_CAP_PROP_FRAME_WIDTH,620); cap.set(CV_CAP_PROP_FRAME_HEI...
by gauravsharma0190
Fri Jul 29, 2016 9:25 am
Forum: Networking and servers
Topic: PI As web server
Replies: 3
Views: 969

Re: PI As web server

Hello sir i solved the error i installed as python3-flask. now its working. but my code is not working. Here is my code which copied from that link from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Hello world' if __name__ == '__main__': app.run(debug=True, host='192...
by gauravsharma0190
Fri Jul 29, 2016 5:53 am
Forum: Networking and servers
Topic: PI As web server
Replies: 3
Views: 969

PI As web server

Hello there, i am new in pi with web server i want to make a web server so i googled it and found the flask is easy way to make server using python so i installed it Here iis the link https://www.raspberrypi.org/learning/python-web-server-with-flask/ Now when i run the code i got error no module fou...
by gauravsharma0190
Tue Apr 12, 2016 11:25 am
Forum: General discussion
Topic: Touchscreen Application in Pi
Replies: 1
Views: 607

Touchscreen Application in Pi

Hello folks,
I want to develop a GUI application for GPIO for blink the led.Just i open the app like LED and gui opens.
So can i do it in pi.
Wait for Suggestions.
by gauravsharma0190
Mon Apr 04, 2016 10:47 am
Forum: General discussion
Topic: LIRC emit (Raspbian wheezy) not working
Replies: 11
Views: 15396

Re: LIRC emit (Raspbian wheezy) not working

Hello there, i used irrecord -d /dev/lirc0 ~lircd.conf and put all the information in that file and configure it correctly. now reboot the system. and again copy this file to the /etc/lirc/lircd.conf. now start the configuration as /etc/init.d/lirc start Now i run the irw and press the button but it...
by gauravsharma0190
Wed Feb 24, 2016 8:45 am
Forum: General discussion
Topic: LIRC emit (Raspbian wheezy) not working
Replies: 11
Views: 15396

Re: LIRC emit (Raspbian wheezy) not working

sir i have very basic problem in lirc. when i run mode2 -d /dev/lirc0 it doesn't response anything but run. also irw does have problem when run give error result is: connect:no such file or directory what is the problem. please reply
by gauravsharma0190
Wed Feb 24, 2016 6:17 am
Forum: Troubleshooting
Topic: LIRC: mode2 continuously receiving pulses from TSOP85
Replies: 14
Views: 5835

Re: LIRC: mode2 continuously receiving pulses from TSOP85

sir
i have a problem whae i run the mode2 -d /dev/lirc0
it didn't show the pulse and space.
what is the problem.
please reply i am waiting.
my ir receiver is TSOP1838.
i did gpio 18 as in pin and remote is NEC protocol.
by gauravsharma0190
Wed Feb 24, 2016 6:08 am
Forum: Beginners
Topic: mode2 -d /dev/lirc0
Replies: 1
Views: 723

Re: mode2 -d /dev/lirc0

Please reply
i am stucking in it
by gauravsharma0190
Tue Feb 23, 2016 10:25 am
Forum: Beginners
Topic: mode2 -d /dev/lirc0
Replies: 1
Views: 723

mode2 -d /dev/lirc0

hello there, after a long time i again move to RPI. now i am working IR receiver using lirc module i downloaded it using apt-get install make some changes in /etc/modules i2c_dev i2c gpio in name and out name pin i also done /boot/config.conf. after i edit some in /etc/hardware.conf driver="dev inpu...
by gauravsharma0190
Fri Feb 12, 2016 6:53 am
Forum: General discussion
Topic: MJPG-streamer
Replies: 1
Views: 693

Re: MJPG-streamer

hello there plzz reply me i am stuck into it there are results when run the code [email protected]:/usr/local/bin $ ./mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 320x240 -y -q 80 " ./output_file.so /tmp/stream/ MJPG Streamer Version: svn rev: i: Using V4L2 device.: /dev/video0 i: Desired Resolutio...
by gauravsharma0190
Thu Feb 11, 2016 10:47 am
Forum: General discussion
Topic: MJPG-streamer
Replies: 1
Views: 693

MJPG-streamer

hello all i am working on Wabcam Logitech C615 camera and want to interface with it to raspberry pi. so i install Mjpg-streamer and untar the file. make it and install it. copy folder to /usr/local/bin and www to /usr/local/lib After that i set the path to export LD_LIBRARY_PATH=/usr/local/bin now i...
by gauravsharma0190
Fri Jul 10, 2015 7:09 am
Forum: C/C++
Topic: i2c with pcf8591
Replies: 46
Views: 9495

Re: i2c with pcf8591

[email protected], i have done reading values from the channel 0 of pcf8591 but the problem is that when i read from channel 1 and any channel it couldn't read accurate from that channels.... here is the code #include <errno.h> #include <linux/i2c-dev.h> #include <string.h> #include <stdio.h> #include <std...
by gauravsharma0190
Fri May 22, 2015 7:12 am
Forum: C/C++
Topic: i2c with pcf8591
Replies: 46
Views: 9495

Re: i2c with pcf8591

hello there, i read the o/p of pcf8591...here is the o/p ******************************************************** I2C IS WORKING buff len 0buff value 201 ADC VALUE: 3.000000 buff value 201 ADC VALUE: 3.000000 buff value 201 ADC VALUE: 3.000000 buff value 201 ADC VALUE: 3.000000 buff value 201 ADC VA...
by gauravsharma0190
Wed May 13, 2015 6:57 am
Forum: C/C++
Topic: i2c with pcf8591
Replies: 46
Views: 9495

Re: i2c with pcf8591

hey joan,
sorry for interruption in conversion
i want to know that if i get data from pcf than i typed i2cget 0 0x48....
and it will show the data 0x80.
but if i connect sensors to 2nd channel of pcf then how will it read.....
reply.
by gauravsharma0190
Wed May 13, 2015 6:54 am
Forum: C/C++
Topic: i2c with pcf8591
Replies: 46
Views: 9495

Re: i2c with pcf8591

dhouha1990 wrote:Hi

Can i connect pt100 directly to pcf8591?

thank you
yes you can directly connect it but with proper circuit as resistance.
by gauravsharma0190
Mon May 11, 2015 9:19 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ragardign von neuman
Replies: 1
Views: 546

ragardign von neuman

hwllo there,
i want to know that if i interface an eeprom ic to RPI or 51 or pic then does it von neuman architecute or not.
i am little bit confused in it....i googled it but can't find.
by gauravsharma0190
Thu Apr 30, 2015 10:43 am
Forum: C/C++
Topic: i2c with pcf8591
Replies: 46
Views: 9495

Re: i2c with pcf8591

Are you trying to talk to a PCF8591 over I2C? If you are you need to send it commands it understands. The commands it understands are detailed in its specification. What does the specification say it does when it receives 0x32 0x10? joan it is mentioned in i2cset <bus> <chip> <register> <value> so ...
by gauravsharma0190
Thu Apr 30, 2015 10:04 am
Forum: C/C++
Topic: i2c with pcf8591
Replies: 46
Views: 9495

Re: i2c with pcf8591

You need to read and understand the device's specification. Here is a copy http://www.nxp.com/documents/data_sheet/PCF8591.pdf Sending a control byte of 0x32 makes little sense to me. The data byte (0x10 in your example) is used to latch the DAC which you have not enabled anyhow. but see this joan ...

Go to advanced search