0

i2c conflict
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

Re: i2c conflict

by adafruit_support_carter on Thu Jan 17, 2019 1:20 pm

If the library install went OK, then the issue above was you were running Python commands at the linux prompt. You need to run Python first.

And we're just trying to get servos to move at this point. Is that much working?

adafruit_support_carter
 
Posts: 10430
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 1:52 pm

Sounds like I had things messed up a bit. Thanks and I will looker closer at those issues. To answer your question, yes ALL servos are working as they should, just no sounds.

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by adafruit_support_carter on Thu Jan 17, 2019 1:56 pm

OK, then it sounds like we just need to move on to trying to get the Speaker Bonnet working. That requires some additional setup, which is covered in this guide:
https://learn.adafruit.com/adafruit-spe ... spberry-pi

Have you gone through that yet? You mention getting sound through the terminal in your first post, so maybe you have?

adafruit_support_carter
 
Posts: 10430
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 2:13 pm

Yes, I did that and was getting sound from the speaker intended. Humm .

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by adafruit_support_carter on Thu Jan 17, 2019 2:22 pm

OK, then you have everything working. You can use this library for the Servo HAT:
https://learn.adafruit.com/adafruit-16- ... ibrary-7-5
and this library for the Motor HAT:
https://learn.adafruit.com/adafruit-dc- ... ibrary-4-3

However, controlling audio and using the Stereo Bonnet from within Python is a little tricky. The approach we currently demonstrate is by using PyGame:
https://learn.adafruit.com/adafruit-spe ... ith-pygame

adafruit_support_carter
 
Posts: 10430
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 2:30 pm

O.K. I'm going for it. I'm hoping for a "little tricky" rather than a "good luck".
Be right back, please hold.

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 6:53 pm

I failed.
I got all "put where I thought they should go" and no sound either in Terminal or Pi3.

I got sound from that speaker and bonnet in one of the last attempts. I can do this (with your help).

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by adafruit_support_carter on Thu Jan 17, 2019 6:59 pm

Easiest is to just try running a simple noise generator from the command line. Try this:
https://learn.adafruit.com/adafruit-spe ... r-test-6-1

You don't need to run Python for that. Just run it from the pi@raspberrypi: ~ $ prompt, like this:
Code: Select all | TOGGLE FULL SIZE
pi@raspberrypi:~ $ speaker-test -c2

adafruit_support_carter
 
Posts: 10430
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 8:40 pm

Ahh ... music to my ears. Works great. Thanks.
This is a teaching tool I building for my grand kids. This will be cool. Thanks for your help
Now what?

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by adafruit_support_carter on Thu Jan 17, 2019 9:06 pm

Let's make sure I understand where things are at. Is this a correct summary of the situation?
  • Using the Servo HAT works OK in Python
  • Using the Motor HAT works OK in Python
  • Using the Stereo Bonnet does not work from Python but does work from command line

adafruit_support_carter
 
Posts: 10430
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 9:29 pm

Yes. Exactly.

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 9:30 pm

Is that something I need to figure out myself. If so I understand.

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by adafruit_support_carter on Thu Jan 17, 2019 9:43 pm

Yes / No. Ideally we'd have a good guide for you. But I think right now that third bullet isn't covered very well. But all your hardware is working and you've got the libraries installed. You're not getting the I2C conflicts anymore. So I think we've gotten you at least to a point where you can start trying things out.

adafruit_support_carter
 
Posts: 10430
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2c conflict

by Cgreenwell on Thu Jan 17, 2019 9:53 pm

Great. Thanks so much for teach me through this. Enjoy your next time off.

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Re: i2c conflict

by Cgreenwell on Sat Jan 19, 2019 6:32 am

Just one more thing. I have sound now, thanks. However, I have lost control of two servos. I have 4 servos and two (the first two in the sketch) do not respond while using "pygame" but when I use a version without pygame all work. Huuummm??

Cgreenwell
 
Posts: 23
Joined: Thu Jan 12, 2017 7:54 pm

Please be positive and constructive with your questions and comments.