Go to advanced search

by Adco
Thu Apr 07, 2016 9:10 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: Optional interfaces (I2C, I2S, SPI) and Device Tree
Replies: 128
Views: 146628

Re: Optional interfaces (I2C, I2S, SPI) and Device Tree

I'm guessing you are using the i2c-rtc overlay? By doing so you are telling the I2C subsystem that the device at 0x68 is owned by the ds1307 driver. If you run "i2cdetect -y 1" you will see that the slot for the 68 address contains "UU" - used. What you are trying to do is interfere with that devic...
by Adco
Thu Apr 07, 2016 8:57 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: Optional interfaces (I2C, I2S, SPI) and Device Tree
Replies: 128
Views: 146628

Re: Optional interfaces (I2C, I2S, SPI) and Device Tree

I can read from the DS1307 using hwclock and i2cdetect but cannot write my own commands to it. I placed 2 LEDs, in series with the pull-ups, on the SDA and SCL lines on the I2C bus. When I do I2Cdetect, the leds flash briefly as they should. That is when the DS1307 gets read and identified. All good...
by Adco
Thu Apr 07, 2016 7:58 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS1307 address query
Replies: 10
Views: 2545

Re: DS1307 address query

I placed 2 LEDs, in series with the pull-ups, on the SDA and SCL lines on the I2C bus. When I do I2Cdetect, the leds flash briefly as they should. That is when the DS1307 gets read and identified. All good. When I try and read or write to the DS1307, no flashing. Tells me the I2Cset command is incor...
by Adco
Wed Apr 06, 2016 4:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS1307 address query
Replies: 10
Views: 2545

Re: DS1307 address query

I have hooked up a DS1307 to the 40 way connector and connected the 2 pull-ups to 3V3. I2C-1 on header pins 3&5 already has pull ups installed. Yup, resistors removed. When I run i2cdetect, I can see it at address 68. I can write to the device with hwclock -w and I read the time back using hwclock ...
by Adco
Wed Apr 06, 2016 2:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS1307 address query
Replies: 10
Views: 2545

Re: DS1307 address query

Found one problem!

In my PIC code, I send a 0xD0 because I am adding the read bit at the end. 7 bits for the address code and 1 bit for R/w.

7 bit address code gives 68 which is correct!

Wow! That was crazy. Took a while to see that!

Now to work out why I can't turn the LED on. Bet it is easy.
by Adco
Wed Apr 06, 2016 1:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS1307 address query
Replies: 10
Views: 2545

DS1307 address query

Morning Using Raspberry Pi 3 with Python IDLE 3. I have hooked up a DS1307 to the 40 way connector and connected the 2 pull-ups to 3V3. When I run i2cdetect, I can see it at address 68. I can write to the device with hwclock -w and I read the time back using hwclock -r. It seems to work. If I remove...
by Adco
Thu Mar 24, 2016 1:54 pm
Forum: Troubleshooting
Topic: Stuck at login
Replies: 34
Views: 44695

Re: Stuck at login

I had the same problem after typing "startx". It kept asking me to enter username and password and would not accept pi and raspberry. I held cntrl + alt + F1 and it took me to the terminal. From there I somehow managed to hack my way back to normality.

Terrible bug!
by Adco
Wed Mar 16, 2016 12:27 pm
Forum: Troubleshooting
Topic: WiFi country code resets
Replies: 15
Views: 9663

Re: WiFi country code resets

It has been fooling me all along! The reason I went to look in the country TAB was because the WiFi kept dropping off and when I looked there, and it showed Andorra, I thought it was defaulting. There must be some other problem. I will keep looking. Thanks for all your help. Wifi dropping is a know...
by Adco
Wed Mar 16, 2016 12:03 pm
Forum: Troubleshooting
Topic: WiFi country code resets
Replies: 15
Views: 9663

Re: WiFi country code resets

Oops... there's a typo in one of my previous posts. :oops: Correct command is sudo cat /etc/wpa_supplicant/wpa_supplicant.conf Ha ha. No problem. It works. Tells me my country is ZA but on the country select tab it shows Andorra. Perhaps it always comes up with Andorra when you open that tab. I cha...
by Adco
Wed Mar 16, 2016 11:51 am
Forum: Troubleshooting
Topic: WiFi country code resets
Replies: 15
Views: 9663

Re: WiFi country code resets

DirkS wrote:

Code: Select all

cat /etc/os-release
That worked, thanks
PRETTY_NAME is Raspbian GNU/Linux 8 (jessie)
I think that is good.
by Adco
Wed Mar 16, 2016 11:43 am
Forum: Troubleshooting
Topic: WiFi country code resets
Replies: 15
Views: 9663

Re: WiFi country code resets

Tried that. Message is: No such file or directory.

Where can I see what OS and version on my system?
by Adco
Wed Mar 16, 2016 11:24 am
Forum: Troubleshooting
Topic: WiFi country code resets
Replies: 15
Views: 9663

Re: WiFi country code resets

DirkS wrote:Which OS did you install? Doesn't seem to be a standard Raspbian Jessie...
I downloaded it from the downloads section of this site. I chose the Noobs with Raspbians and used a Torrent.
When can I find an "about" tab so I can see which version etc?
by Adco
Wed Mar 16, 2016 11:13 am
Forum: Troubleshooting
Topic: WiFi country code resets
Replies: 15
Views: 9663

Re: WiFi country code resets

Can you see the country info in /etc/wpa_supplicant/wpa_supplicant.conf? And is it still there when the country is reset to the default? This is what is in that file: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=net dev ap_scan=1 update_config=1 The strange thing is that the file is on my flash...
by Adco
Wed Mar 16, 2016 8:19 am
Forum: Troubleshooting
Topic: WiFi country code resets
Replies: 15
Views: 9663

WiFi country code resets

A new Pi 3. The WiFi country code keeps defaulting to Andorra, the first country on the list. It works for a while and I can connect to the net, then suddenly it disconnects because the country had defaulted to Andorra. The worst thing is that my country code is ZA so I have to scroll down every time!
by Adco
Mon Mar 14, 2016 6:42 pm
Forum: Beginners
Topic: Solenoid to push a button...help!
Replies: 6
Views: 2030

Re: Solenoid to push a button...help!

I think a RPi is way over the top to do this job. Depending on the accuracy needed, I would either use a dedicated cmos type "counter" or a PIC chip like a 12fxxx. Depends on the person electronics abilities. Then I would either drive a transistor across the push button or drive a relay contact onto...
by Adco
Fri Mar 11, 2016 7:57 pm
Forum: Beginners
Topic: Solenoid to push a button...help!
Replies: 6
Views: 2030

Re: Solenoid to push a button...help!

Why do you need to physically push the button every 90 seconds? Can't you set up a timer to "push" the button in software instead?
by Adco
Fri Mar 11, 2016 3:25 pm
Forum: Beginners
Topic: Choosing the correct environment
Replies: 0
Views: 264

Choosing the correct environment

Howdy all. I generally use PIC devices in my everyday work life. I got a request to come up with the following design. It is a "call" system for checkout tills. Each teller has a push button and the teller number must generate a till related graphic on a screen when the button is pressed to show whi...

Go to advanced search