Thanks again.
When I remove that line, the things behave exactly like the other python examples. The RGB display just flashes random dots of random color.
Tested with the snake.c example again, and it still works fine. So assume that the hardware is ok.
-
- Posts: 5
- Joined: Tue Aug 09, 2016 9:35 am
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Sense-Hat Problems
Sorry, that doesn't quite answer the question fully.alphanumeric wrote:Both of my Pi's/sense hats are running Jessie Pixel as far as I know. On one I did a sudo apt-get update, sudo apt-get upgrade and some things started acting weird. My sense hat code still worked. I just had other issues. It would boot to the Desktop GUI even though I set it to command line for one thng. That prompted me to leave my other Pi as is. One is an A+ (256 meg of RAM) and a newer A+ (512meg RAM).
ShiftPlusOne wrote:What does 'uname -a' say?
-
- Posts: 3109
- Joined: Tue Jan 19, 2016 2:17 pm
- Location: Sydney, Nova Scotia, Canada
Re: Sense-Hat Problems
I'll have to connect a monitor etc and have a look. They both run headless and I don't think I setup remote access this time around, got lazy.ShiftPlusOne wrote:Sorry, that doesn't quite answer the question fully.alphanumeric wrote:Both of my Pi's/sense hats are running Jessie Pixel as far as I know. On one I did a sudo apt-get update, sudo apt-get upgrade and some things started acting weird. My sense hat code still worked. I just had other issues. It would boot to the Desktop GUI even though I set it to command line for one thng. That prompted me to leave my other Pi as is. One is an A+ (256 meg of RAM) and a newer A+ (512meg RAM).
ShiftPlusOne wrote:What does 'uname -a' say?

- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Sense-Hat Problems
Does the problem go away if you put 'force_turbo=1' into /boot/config.txt and reboot?
-
- Posts: 3109
- Joined: Tue Jan 19, 2016 2:17 pm
- Location: Sydney, Nova Scotia, Canada
Re: Sense-Hat Problems
On the Pi I did the update upgrade on it says this, 4.4.38+ #938 Thur Dec 15.......armv61 GNU Linux. Things got kind of broken after but my python file still ran OK afterward. I hope I'm not confusing things as far as the OP goes.
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Sense-Hat Problems
Ah yup, got a little confused given your similar display names. Yours is working as expected, right?alphanumeric wrote:On the Pi I did the update upgrade on it says this, 4.4.38+ #938 Thur Dec 15.......armv61 GNU Linux. Things got kind of broken after but my python file still ran OK afterward. I hope I'm not confusing things as far as the OP goes.
-
- Posts: 3109
- Joined: Tue Jan 19, 2016 2:17 pm
- Location: Sydney, Nova Scotia, Canada
Re: Sense-Hat Problems
Yes, its working as expected, that's why I linked to code I knew worked. For me anyway it works. I leave one Pi running that code 24/7 headless. It's my weather clock.ShiftPlusOne wrote:Ah yup, got a little confused given your similar display names. Yours is working as expected, right?alphanumeric wrote:On the Pi I did the update upgrade on it says this, 4.4.38+ #938 Thur Dec 15.......armv61 GNU Linux. Things got kind of broken after but my python file still ran OK afterward. I hope I'm not confusing things as far as the OP goes.
I thought the two similar usernames might be confusing things and figured I'd mention it just in case. So I take it I'm still on kernel 4.4?
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Sense-Hat Problems
Yes, sounds like it. If the issue is what I think it is then your code will stop working if you run rpi-update and reboot.alphanumeric wrote:ShiftPlusOne wrote:So I take it I'm still on kernel 4.4?
-
- Posts: 5
- Joined: Tue Aug 09, 2016 9:35 am
Re: Sense-Hat Problems
Yes, I was on kernel 4.9 and that was the problem. Reinstalled Jessie and now things are working as expected.ShiftPlusOne wrote: Did you run rpi-update? I was checking this and mine was working fine until I updated the kernel to 4.9. What does 'uname -a' say?
Thanks a lot.
-
- Posts: 3109
- Joined: Tue Jan 19, 2016 2:17 pm
- Location: Sydney, Nova Scotia, Canada
Re: Sense-Hat Problems
Ah that's good news, I was just about to do a rpi-update as a test but won't bother now.
Re: Sense-Hat Problems
Just updated Pi3B with rpi-update and the HAT LEDs have gone wild. Not a single py script I did is working. They did worked before the update. Not even a sense.clear() from python shell is working...
There is no warning and no error message. The HAT LEDs just don't work as expected. Gonna do some more tests and maybe go back to the previous version.
Edit: the sensors are working fine, looks like its just the led matrix that goes crazy.
Code: Select all
uname -a
Linux malina 4.9.13-v7+ #974 SMP Wed Mar 1 20:09:48 GMT 2017 armv7l GNU/Linux
Edit: the sensors are working fine, looks like its just the led matrix that goes crazy.
[ntn]
Pi 3B & HAT, Pi 3B+ & NoIR, Pi 3A+ & NoIR, PiZeroW
Pi 3B & HAT, Pi 3B+ & NoIR, Pi 3A+ & NoIR, PiZeroW
Re: Sense-Hat Problems
WTF!!!!
Just got my sense hat hooled up, followed all updates and did RPI update (now kernal 4.9.whatever)
Still get:
OSError: Cannot detect RPi-Sense FB device
on everything I try to run.
Running NOOBS, did update and upgrade.
HELPHELPHELP
I'm getting ready to maker a pitch to NASA to do "AMERICAN PI"
It would kinda help if the thing worked.
Jeff KG7TXI
Just got my sense hat hooled up, followed all updates and did RPI update (now kernal 4.9.whatever)
Still get:
OSError: Cannot detect RPi-Sense FB device
on everything I try to run.
Running NOOBS, did update and upgrade.
HELPHELPHELP
I'm getting ready to maker a pitch to NASA to do "AMERICAN PI"
It would kinda help if the thing worked.
Jeff KG7TXI
Re: Sense-Hat Problems
Don't use a testing branch with Rpi-Update.jhansx wrote:WTF!!!!
Just got my sense hat hooled up, followed all updates and did RPI update (now kernal 4.9.whatever)
Still get:
OSError: Cannot detect RPi-Sense FB device
on everything I try to run.
Running NOOBS, did update and upgrade.
HELPHELPHELP
I'm getting ready to maker a pitch to NASA to do "AMERICAN PI"
It would kinda help if the thing worked.
Jeff KG7TXI
Use the normal everyday setup.
- DougieLawson
- Posts: 42160
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Sense-Hat Problems
sudo apt-get update; sudo apt-get install --reinstall raspberrypi-kernel raspberrypi-bootloaderjhansx wrote: Just got my sense hat hooled up, followed all updates and did RPI update (now kernal 4.9.whatever)
Anyone who doesn't understand what rpi-update does, how to recovery from it when it breaks and how to report rpi-update errors should NOT EVER RUN rpi-update.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Sense-Hat Problems
Bes, I am just regular old Pi B+ Debian Jessie.
Dougie, the stinging rebuke aside, thank you! You give away hard earned knowledge every day and as far as I can tell all day and no one ever stops to really thank you or acknowledge your help. It is little wonder you are fed up with newby Colonists who can't even spellcheck a post.
You are a God of this world, I thank you!
Would you consider helping me as tech support with American PI? I am trying to make a US equivalent of Astro Pi. I got an idea and obviously no talent. Got some resources and I think that this might pay off in the end.
What say you sir, a bit of Brexit? That is if consorting with Colonists won't get you outed.
Thanks again, implementing your solution as I type.
KG7TXI
Jeff 3073500199
Dougie, the stinging rebuke aside, thank you! You give away hard earned knowledge every day and as far as I can tell all day and no one ever stops to really thank you or acknowledge your help. It is little wonder you are fed up with newby Colonists who can't even spellcheck a post.
You are a God of this world, I thank you!
Would you consider helping me as tech support with American PI? I am trying to make a US equivalent of Astro Pi. I got an idea and obviously no talent. Got some resources and I think that this might pay off in the end.
What say you sir, a bit of Brexit? That is if consorting with Colonists won't get you outed.
Thanks again, implementing your solution as I type.
KG7TXI
Jeff 3073500199
Re: Sense-Hat Problems
Traceback (most recent call last):
File "colour_cycle.py", line 5, in <module>
sense = SenseHat()
File "/usr/lib/python2.7/dist-packages/sense_hat/sense_hat.py", line 39, in __init__
raise OSError('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
OSError: Cannot detect RPi-Sense FB device
AFTER running Dougies suggested RPI fix
Any suggestions???
Jeff
File "colour_cycle.py", line 5, in <module>
sense = SenseHat()
File "/usr/lib/python2.7/dist-packages/sense_hat/sense_hat.py", line 39, in __init__
raise OSError('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
OSError: Cannot detect RPi-Sense FB device
AFTER running Dougies suggested RPI fix
Any suggestions???
Jeff
Re: Sense-Hat Problems
Sorry jhansx, rpi-update puts you on to a testing branch.
If there are still problems with the sense-hat then they do need fixing with the new 4.9 kernel before they release it.
4.4 being the current one today.
Curious, why did you run rpi-update, Dougie's suggest on another thread was a good idea, rpi-update should not be in the default Raspian install.
If there are still problems with the sense-hat then they do need fixing with the new 4.9 kernel before they release it.
4.4 being the current one today.
Curious, why did you run rpi-update, Dougie's suggest on another thread was a good idea, rpi-update should not be in the default Raspian install.
Re: Sense-Hat Problems
If you can, i would just start from a fresh Raspian image download, it may be quicker and it's a known good.jhansx wrote:Traceback (most recent call last):
File "colour_cycle.py", line 5, in <module>
sense = SenseHat()
File "/usr/lib/python2.7/dist-packages/sense_hat/sense_hat.py", line 39, in __init__
raise OSError('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
OSError: Cannot detect RPi-Sense FB device
AFTER running Dougies suggested RPI fix
Any suggestions???
Jeff
Have you rebooted.
Have you ever had it on backwards?
The SenseHat is really designed around Python3.
Re: Sense-Hat Problems
root@raspberrypi:~/examples/python-sense-hat# python colour_cycle.py
Traceback (most recent call last):
File "colour_cycle.py", line 5, in <module>
sense = SenseHat()
File "/usr/lib/python2.7/dist-packages/sense_hat/sense_hat.py", line 39, in __init__
raise OSError('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
after re-enabling the:
#Line to enable SenseHat, I hope, which is apparently not needed in B+
dtoverlay=rpi-sense
Help Mr Wizard... Drizzle Drazzel Drozzel Drone, Time for Zis one to come home....
Betcha don't remember that one!
Jeff
Traceback (most recent call last):
File "colour_cycle.py", line 5, in <module>
sense = SenseHat()
File "/usr/lib/python2.7/dist-packages/sense_hat/sense_hat.py", line 39, in __init__
raise OSError('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
after re-enabling the:
#Line to enable SenseHat, I hope, which is apparently not needed in B+
dtoverlay=rpi-sense
Help Mr Wizard... Drizzle Drazzel Drozzel Drone, Time for Zis one to come home....
Betcha don't remember that one!
Jeff
Re: Sense-Hat Problems
Will try a fresh install.
No I never got it on backwards.
Thanks for the help.
Jeff
No I never got it on backwards.
Thanks for the help.
Jeff
Re: Sense-Hat Problems
As for an American Astronomy Pi, have a chat with the people who have help get the UK AstroPi and the now ESA European AstroPi this year using the two devices up there.
They probably can help better than most.
Start a topic on it.
They probably can help better than most.
Start a topic on it.
Re: Sense-Hat Problems
Well full fresh install, removed and reinstalled the header pins. Device not recognized, same error.
Gotta be hardware. Gonna try to return it and try again. REALLY worries me though.
NASA doesn't like failure.
Gotta be hardware. Gonna try to return it and try again. REALLY worries me though.
NASA doesn't like failure.
Re: Sense-Hat Problems
finally, had a bent pin on the header. YEAH!
Remember the first question IBM help desk used to ask was do you have a computer, the second was is it plugged in, the third was is it turned on?
Remember the first question IBM help desk used to ask was do you have a computer, the second was is it plugged in, the third was is it turned on?
- DougieLawson
- Posts: 42160
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Sense-Hat Problems
That's, precisely, the reason why I never called the helpdesk in my twenty years working for IBM.jhansx wrote:Remember the first question IBM help desk used to ask was do you have a computer, the second was is it plugged in, the third was is it turned on?
So you've learned a few things
1. Don't run rpi-update (except when told to by an expert)
2. Check the hardware, check it again
3. Don't shout for help until you've completed #1 & #2.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Sense-Hat Problems
i thought Dougie was an expert. lesson learned.
thank you all
kg7txi
jeff
thank you all
kg7txi
jeff