So, two questions. First, how do I wire a gyro into that? I have rate, temp, two +5’s, and two grounds, but no idea what to solder where. (Using usb to get the values.)
Second, PSoC programmer (3.12 it says) doesn’t seem to work. I tried both the hex files that were installed into documents\FRC, and one of them said “The hex file was built for silicon revision ES3, but the acquired device is revision **. User PSoC Creator to generate a hex file for the proper device.” The other file gave the error of “The hex file does not match with teh acquired device, please check the device.” and I’m not sure what to do.
That gyro returns a simple analog signal, so it connects to an analog input.
It doesn’t connect directly to a USB cable.
For wiring, the three pins below “Gyro” (Ground, +5v power, signal) get wired to the analog breakout pins mounted on the cRIO module if it is robot mounted.
Or if you are connecting it directly to the Cypress (odd since the Cypress already has a gyro incorporated), then they connect to one set of analog input pins.
The Cypress silicon version you have requires the latest version of the Cypress tools to successfully image with the FRC firmware.
The boards returning “device revision is **” need PSoC Programmer 3.17 or later to download the FRC firmware.
You need to uninstall the FRC supplied PSoC version and replace it with the latest from the Cypress website.
I didn’t quite remember correctly. The board uses a built-in accelerometer to detect motion rather than a gyroscope, but it’s pretty good.
There are example projects that comes with the PSoC Programmer showing how the output is accessed and used.
I don’t remember the accelerometer being passed through the FRC WPILIB API though, so if you are planning to use this through the Driver Station application, then wiring your own gyro in may be the way to go.
Ask in the Java subforum.
Depending on how you plan to integrate and use the PSoC you may not need the FRC firmware. For instance, it can be used directly by your own program running on a laptop instead of coming in through the Driver Station.
Can I ask where the examples are? Specifically in java?
EDIT: Ya, how do you even program it? I’ve been looking for over half an hour, found no actual code anywhere. I feel like either the way people are taught to program for FRC is horrible or I am missing some way to find what functions do what. Or maybe we are relying on someone else knowing beforehand, and those who don’t just asking on these forums… which seems like it would be redundant an annoying for you people who know how to answer my questions.
Can’t figure out how to edit anymore, but wanted to clarify: You people here are awesome, I would know almost none of the syntax if you people didn’t tell me. Buy why do we not have a big list of examples projects or something like that somewhere? Especially because it seems like you must answer the same questions a lot, due to different wording of the question. Generally I can figure out what a function does given its name, especially if I have a robot to test it on, but to figure out even what to import, and what function to call to do things is much harder.
EDIT: And to ask again, where do 5 volts and ground go on the cypress board? I can figure that ground goes to ground, but no idea where 5 volts goes. Figure that rate/temperature/other specifics don’t matter where they are wired into, as long as the programming is the same, but not sure.
I really feel like I am missing something, some site that has information or something.