Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Friend V2] Simulate Haptics with Speaker ($500) #573

Closed
josancamon19 opened this issue Aug 10, 2024 · 3 comments
Closed

[Friend V2] Simulate Haptics with Speaker ($500) #573

josancamon19 opened this issue Aug 10, 2024 · 3 comments
Labels

Comments

@josancamon19
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Through speakers simulate haptics and vibration.

@pmb2
Copy link

pmb2 commented Aug 10, 2024

I can handle this one 😄

@kevvz
Copy link
Collaborator

kevvz commented Aug 19, 2024

I'm unsure if this can be done. The "low tone" vibrations which could simulate haptics get distorted since the speak is kinda low quality. Basically, instead of a strong vibration you get an annoying squeak which doesn't vibrate. I think it will be easier to just attach a haptic motor instead. It makes everyone's life easier.

josancamon19 added a commit that referenced this issue Aug 29, 2024
#567 

This is a rebase of the previous PR.

How to test:
In the firmware_v1.0 file,

Flash the zephyr.uf2 file in the file "build_speaker".
-Then use the script "discover_devices.py" to find the device id of your
Omi device. This is to avoid cases where there are multiple friends
connected at once. If there is more than one friend then just test all
of them.
In the script play_sound_on_friend.py, (in firmware_v1.0)

On line 20 add the device id of your friend. This is to avoid cases
where there is more than one friend nearby.
On line 21 add your Deepgram API key.
Then save and run the script by typing a small string. For example, one
line could be

python3 play_sound_on_friend.py "hello"

Which should get the speaker to say hello. Make sure your device is
connected by USB or you have connected a 3.3V pin to the speaker.

#573 (For now it is disabled
but since this uses very similar code).

A sound should play automatically when you compile and run the
zephyr.uf2 file. Of course this file can be modified to play any haptic
sound provided you enter the appropriate lookup table.
@josancamon19
Copy link
Contributor Author

Speaker was set, but haptics simulation was impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants