rgelb
July 1, 2013, 3:24am
1
I see that there is Piezo on the original Cobra (http://www.ghielectronics.com/downloads/FEZ/Cobra/Broch_FEZ_Cobra.pdf ), but I see nothing on the Cobra II (http://www.ghielectronics.com/downloads/schematic/FEZ_Cobra_II_SCH.pdf )
Am I missing something simple, or is it just simply not there?
If it’s not included is there a Gadgeteer module that can do the job?
I tried running:
Microsoft.SPOT.Hardware.Utility.Piezo(1000, 1000);
but heard nothing.
No onboard buzzer, have a look at the tunes module.
rgelb
July 1, 2013, 11:27am
3
But the Tunes module would not work with the standard Utilities.Piezo method, correct?
Justin
July 1, 2013, 11:29am
4
Correct, it uses a PWM driver
rgelb
July 1, 2013, 5:02pm
6
The product page for the Tunes module shows that it is a Socket P. Cobra II WiFi doesn’t have a Socket P. Would it still work? Where would I insert this module?
You can use cobra extender our simply wire any PWM pin from cobra to pin 3 on tunes.
rgelb
July 2, 2013, 1:56pm
8
Sorry, I am a bit out of my depth. Do you mean that I need to wire up any pin on one of the gadgeteer ports on the G120 to pin 3 of the gadgeteer port on the Tunes module?
you can find PWM locations on the header via the schematic: http://www.ghielectronics.com/downloads/schematic/FEZ_Cobra_II_SCH.pdf we have an introduction to PWM in our docs http://www.ghielectronics.com/docs/18/pwm . You can see how the tunes driver uses PWM from its source code: http://gadgeteer.codeplex.com/SourceControl/latest#Main/Modules/GHIElectronics/Tunes/Software/Tunes/Tunes_42/Tunes_42.cs . Although not exactly what you want this document, because it talks about Gadgeteer drivers, might provide some additional guidance: https://www.ghielectronics.com/docs/122/gadgeteer-driver-modification