Main Site Documentation

Is there a Piezo on Cobra II WiFi?


#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.


#2

No onboard buzzer, have a look at the tunes module.


#3

But the Tunes module would not work with the standard Utilities.Piezo method, correct?


#4

Correct, it uses a PWM driver


#5

http://www.ghielectronics.com/docs/179/tunes-module


#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?


#7

You can use cobra extender our simply wire any PWM pin from cobra to pin 3 on tunes.


#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?


#9

#10

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