Hi everyone,
I plugged the card gyro (L3G4200D) , with the controller NetDuino Plus
• when queried values of the gyro, the values are incorrect
• during interrogation of the identification values of the circuit, and temperature. The values are correct.
I2C bus is functional but for some reason unknown, the gyro seems not to work.
Have you ever encountered this problem?
Attachments: code source, VS2010 project C#, for détails
Cards GY-80 (intégred Gyro):
Debug: Gyro L3G4200D is connected
L3G4200D Gyro id: 211 Temp: 249 status 255 X: 64061 Y: 64452 Z: 64983
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 22 Y: 18 Z: 65507
L3G4200D Gyro id: 211 Temp: 16 status 255 X: 39 Y: 46 Z: 65529
L3G4200D Gyro id: 211 Temp: 16 status 255 X: 17 Y: 55 Z: 65524
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 22 Y: 54 Z: 65532
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 7 Y: 25 Z: 2
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 10 Y: 56 Z: 65480
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 1 Y: 37 Z: 65495
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 32 Y: 56 Z: 10
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 23 Y: 20 Z: 65496
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 36 Y: 63 Z: 65487
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 1 Y: 32 Z: 1
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 29 Y: 50 Z: 65511
L3G4200D Gyro id: 211 Temp: 14 status 255 X: 17 Y: 49 Z: 2
L3G4200D Gyro id: 211 Temp: 14 status 255 X: 0 Y: 54 Z: 65525
L3G4200D Gyro id: 211 Temp: 15 status 255 X: 65302 Y: 40 Z: 65518
Thank you
- Netduino Forums
- → Viewing Profile: Topics: mastronic
The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
About Me
Netduino plus user.
Community Stats
- Group Members
- Active Posts 13
- Profile Views 7988
- Member Title Member
- Age 47 years old
- Birthday June 1, 1976
-
Gender
Male
-
Location
French - France (Lille)
1
Neutral
User Tools
Latest Visitors
Topics I've Started
Gyro L3G4200D ?
09 June 2012 - 09:24 PM
binary number representation in c#
01 June 2012 - 10:21 AM
Hello,
how do you represent a binary number in c#??
I know for a hex number is = 0xffffffff but what about binary?
Regards.
Thierry
Use a microSd 2Go integrating on the Netduino Plus for Loader and exécute compiller pr...
19 May 2012 - 05:17 PM
Hello,
Card: NetDuino Plus
Fonction : Use a microSd 2Go integrating on the Netduino Plus for Loader and exécute compiller program (pe)
Framework version: 4.2
Problem: Does not continue after "Assembly.Load(assmbytes)" .. not executed code loaded.. Help me please.
debug:
The debugging target runtime is loading the application assemblies and starting execution.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managé) : 'LedClignotte' load
Notes:
other soft for read file, write file in the microsd is ok.
Code example to loader:
Regards,
Thierry
Card: NetDuino Plus
Fonction : Use a microSd 2Go integrating on the Netduino Plus for Loader and exécute compiller program (pe)
Framework version: 4.2
Problem: Does not continue after "Assembly.Load(assmbytes)" .. not executed code loaded.. Help me please.
debug:
The debugging target runtime is loading the application assemblies and starting execution.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managé) : 'LedClignotte' load
Notes:
other soft for read file, write file in the microsd is ok.
using System; using System.IO; using System.Threading; using System.Reflection; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using Microsoft.SPOT.IO; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.NetduinoPlus; using SecretLabs.NETMF.IO; namespace NetduinoPlusSdLoader { public class Program { public static void Main(string[] args) { try { using (FileStream assmfile = new FileStream(@"SD\LedClignotte.pe", FileMode.Open, FileAccess.Read, FileShare.None)) { byte[] assmbytes = new byte[assmfile.Length]; assmfile.Read(assmbytes, 0, (int)assmfile.Length); var assm = Assembly.Load(assmbytes); var obj = AppDomain.CurrentDomain.CreateInstanceAndUnwrap("ASSM, Version=1.0.0.0", "ASSM.TestClass"); var type = assm.GetType("ASSM.TestClass"); MethodInfo mi = type.GetMethod("Print"); mi.Invoke(obj, null); } } catch (Exception ex) { Debug.Print("Exception: " + ex.StackTrace); } } } }
Code example to loader:
using System; using System.Threading; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.NetduinoPlus; namespace MonoNetduinoApp { public class Program { static OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); public static void Main() { // write your code here Thread flashLedThread = new Thread(flashLed); flashLedThread.Start(); Thread.Sleep(Timeout.Infinite); } public static void flashLed() { while (true) { led.Write(!led.Read()); Thread.Sleep(250); } } } }
Regards,
Thierry
- Netduino Forums
- → Viewing Profile: Topics: mastronic
- Privacy Policy