Using:
// Using System...
using System;
using System.Threading;
using System.Collections;
// Using Microsoft...
using Microsoft.SPOT;
using Microsoft.SPOT.Touch;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Presentation.Shapes;
using Microsoft.SPOT.Presentation.Controls;
// Using Gadgeteer...
using GT = Gadgeteer;
using Gadgeteer.Networking;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
namespace PWMTest
{
public partial class Program
{
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
PWM PWM_0 = new PWM(Cpu.PWMChannel.PWM_0, 100, 0.5, false); // <--Pin 7 on X3 - Schematic says Pin 7 on X 5?
PWM PWM_1 = new PWM(Cpu.PWMChannel.PWM_1, 110, 0.5, false); // <--Pin 8 on X3 - Schematic says Pin 8 on X 5?
PWM PWM_2 = new PWM(Cpu.PWMChannel.PWM_2, 120, 0.5, false); // <--Pin 9 on X3 - Schematic says Pin 9 on X 5?
PWM PWM_3 = new PWM(Cpu.PWMChannel.PWM_3, 130, 0.5, false); // <--Pin 7 on X4 - Schematic says Pin 7 on X 6?
PWM PWM_4 = new PWM(Cpu.PWMChannel.PWM_4, 140, 0.5, false); // <--Pin 8 on X4 - Schematic says Pin 8 on X 6?
PWM PWM_5 = new PWM(Cpu.PWMChannel.PWM_5, 150, 0.5, false); // <--Pin 9 on X4 - Schematic says Pin 9 on X 6?
PWM_0.Start();
PWM_1.Start();
PWM_2.Start();
PWM_3.Start();
PWM_4.Start();
PWM_5.Start();
}
}
}
URL: https://www.ghielectronics.com/catalog/product/349
See: http://www.ghielectronics.com/downloads/schematic/FEZ_Cerberus_Mainboard_SCH.PDF
Problem 1:
Pin Outs are wrong. Whats going on here? See Code.
Promlen 2:
PWM’s dont work as expected.
–>Pin 7 on X3 - I get: 120Hz 0.60DC Should be: 100Hz 0.5DC → WRONG!
–>Pin 8 on X3 - I get: 110Hz 0.5DC Should be: 110Hz 0.5DC → Correct!
–>Pin 9 on X3 - I get: 120Hz 0.5DC Should be: 120Hz 0.5DC → Correct!
–>Pin 7 on X4 - I get: 130Hz 0.5DC Should be: 130Hz 0.5DC → Correct!
–>Pin 8 on X4 - I get: 150Hz 0.53DC Should be: 140Hz 0.5DC → WRONG!
–>Pin 9 on X4 - I get: 150Hz 0.5DC Should be: 150Hz 0.5DC → Correct!
Whats going on here?
GHI I am really frustrated guys, this is the second board that I have purchased that does not do what you are telling us that it does in the specs!
This means that there are only 4 PWM’s that work properly, and according to the schematic they are on the wrong Gadgeteer connectors.
What the??? :wall: :wall:
D*** the time I have lost in the last few weeks because of these stupid problems is rediculous.