Aron,
In the first line of the thread you linked, Gus says, “This is an old thread; do not use it please.”
I am sorry Mike. I got them mixed up. Here is the correct link: http://www.tinyclr.com/forum/topic?id=7187
After installing the bits from here: http://www.tinyclr.com/forum/topic?id=7187
I still have version Cerberus_4_2_0_0.dfu in the Cerberus firmware directory: C:\Program Files (x86)\GHI Electronics\GHI OSHW NETMF v4.2 SDK\FEZ Cerberus\Firmware
Where is the Cerberus_4_2_0_1.dfu ?
Did you uninstall all of the GHI SDKs from your system before installing this release?
Yes, I unistalled everything including the .NET Gadgeteer Core.
Hi Mike,
I just downloaded the file from this link: http://www.tinyclr.com/forum/topic?id=7187 on a fresh computer and installed it and the file TinyBooter_4_2_0_1.dfu is in the proper directory. Perhaps the file that you installed might have been a cached file from your browser. Even though you downloaded the file, it might have been the cached one that has the wrong version. Try to clear the cache from whichever browser you are using and try to re download the file. You might even want to try to save it to a new location and/or delete the old version of the file from the directory that you downloaded it to. Also, even though you already have done so, uninstall the GHI SDKs again and try what I just suggested.
I hope this works out for you as well.
That must have been the problem, because I think there was an earlier update in my download folder. I downloaded to a portable drive and then transfered to dev machine and installed. The Cerberus_4_2_0_1.dfu is now where it should be. Thanks again, Aron.
All my boards are working now. Thanks!
But, I’m getting unexpected results with the Analog In application that started this chase. When I run the following code with the spider I get a range of voltages between 0 and 3.3 volts, but with the Cerberus the range on the same breadboard and resistors shows a range between 0 and 1 volt. I think that pin 1 is supposed to produce 3.3 volts on both the Cerberus and the Spider. Isn’t it?
The code:
using Microsoft.SPOT;
using GT = Gadgeteer;
using Gadgeteer.Modules.GHIElectronics;
namespace SpiderAnalogIn
{
public partial class Program
{
GT.Interfaces.AnalogInput analogIn;
GT.Socket socket;
void ProgramStarted()
{
socket = Gadgeteer.Socket.GetSocket(10, true, null, "A");
analogIn = new GT.Interfaces.AnalogInput(socket, GT.Socket.Pin.Five, null);
button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
Debug.Print("Program Started");
}
void button_ButtonPressed(Button sender, Button.ButtonState state)
{
Debug.Print(analogIn.ReadVoltage().ToString());
}
}
}
Using code tags will make your post more readable. This can be done in two ways:[ol]
Click the “101010” icon and paste your code between the
tags or...
Select the code within your post and click the "101010" icon.[/ol]
(Generated by QuickReply)
Ok, fixed the code formatting. What about the voltage?
Hi Mike,
Yes, the Gadgeteer standard is that pin 1 supplies 3.3 volts. When you are running the code on Cerberus, what socket are you using?
It’s working now. Must have been a bad connection on the breadboard. Thanks anyway.
Now I’m not convinced this strange voltage range is my fault. Uisng a potentiometer, I’m getting this unexpected range of 0 -1 volt on an analog input from a Cerberus, while the same code on a Spider shows a range of 0 - 3.28 volts.
Same code in both as shown below:
using Microsoft.SPOT;
using Gadgeteer.Modules.GHIElectronics;
namespace CerberusController
{
public partial class Program
{
void ProgramStarted()
{
button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
Debug.Print("Program Started");
}
void button_ButtonPressed(Button sender, Button.ButtonState state)
{
Debug.Print("Percentage: " + potentiometer.ReadPotentiometerPercentage().ToString() + " Voltage: " +
potentiometer.ReadPotentiometerVoltage().ToString());
}
}
}
Earlier you said you were using a breadboard to use the analog. What potentiometer are you using and on what Cerberus socket?
I’m using the GHI Gadgeteer compatible potentiometer and I’ve tried sockets 2 and 3.
What socket do you have the button on and I will try a test to see what is happening?
Button on socket 5.
I ran a test and indeed there is some kind of error. The Gadgeteer analog inputs: ReadPotentiometerPercentage() and ReadPotentiometerVoltage() seem to be swapped. During my test, the percentage went from 0 to 0.3029 and the voltage went from 0 to 1.0. We are looking into this.
Thanks for sanity check!