Thanks I will look at it now
Type: Posts; User: ben10teensy
Thanks I will look at it now
So even if Y was sent through the from the Master
I will read the value from Y after the first send .. In theory?
Thats a very good explanation , my apologies for the lack of information, I do understand you are all trying to help with my limited knowledge and lack of code.
I have a non-disclosure-agreement so...
"value = transfer(0x00); <- the 0x00 is ok in most cases, but not all. that depends on your device."
So this would be the value read?
and if i had to change addresses lets say its
01
02
03...
OK what i'm kinda dealing with is a datasheet that cannot be released.
So i'm trying to figure this out.
With analog devices ofcourse you see its value on the pin
How would you explain the stream...
To better understand the logic of SPI devices I have some questions that may also be helpful to others with the same confusion.
Also my device does not have a written library.
This link is to the...
Its not a device that has a written library
So im trying to get the basic transaction
To send it settings and also know how to recieve
Data
Hey guys
So ive just bought a new teensy 3.2
I was looking over the spi.transfer
And I need to read from a register
As i look over the documentation on spi
It says it writes and also reads at...
I just want to thank Paul Stoffregen for creating these teensy products I really enjoy using them, it's been fun working on hobby projects and having my questions answered by the team.
Thanks and...
Alright so after a lot of work i was able to get the device to give me a 0-255 reading through serial print. Where do you suggest going from there?
Yes, i was trying use someother example to kinda find my way to the data on the chip but i couldn't. Is there a way to call up all the registers like a "*.*" ?
I did email them at pixart to see if...
Hello all
I have an infrared camera that detects up to 16 blobs and gives the x and y coordinates.
But how do i retrieve this data from the device registries?
Below is the link to the products...
Thanks guys I got the basic idea going. I used what Ben said. I created an if statement with the condition being that the IR receiver get 1000 hits. Then it would know which side is getting hits. I...
So just to be sure do I also have to use Serial1 , Serial2, Serial3, to receive transmissions from all the infrared receivers?
OK sorry I may have sounded all mixed up.
This is how it works
IMU connected to Arduino r3 for fusion
Arduino r3 sends "!85.5,90.66,125.66" out through Serial
Teensy3.1 receives on hardware...
Question, so I tried it with the arduino pro mini 3.3v 8mhz
then with the arduino uno r3 16mhz and it is smoother
IT goes from the uno or mini to the teensy which converts it to midi.
Is mhz the...
Ok here is the first video of the project
http://youtu.be/qOw_kAp1AFg?list=UUcfThwZjrJuHToJKjeWq9XA
I see I can post photos but can I upload videos
Ok I finally have a working model.
It uses different codes including parts of
potatotrons help which was vital.
so thanks to all who have assited on this project
I will continue to tweak it and...
Hey Potatotron do you know why the buffer sticks to the first value it sees
And doesn't update?
I added these lines and it updates
so I guess the buffer receives one message and doesn't refresh
Xrot = HWSERIAL.readStringUntil(',');
Serial.print(Xrot);
Serial.println("\"");
Yes it outputs
but the same number repeats even if i move the sensor
OK so I got the sscanf working
I needed to add the #include <string.h>
But not as I print the data it is not updating
here is the code im using on the teensy 3.1
#define BUFFER_SIZE 64...
I was just trying the code and I get an error.
c:/program files...
ok so i cleaned up the code a little since im not using the button functions
how does it look. remember I am just replacing what was a analog potentiometer with the values coming in from the
tx rx...
OK thanks
I will try it
Are there any variables I need to switch out?
Also can i add print(val1);
to see its value?
how would I setup the buffer?
Ive seen examples of Serial.readBytesUntil(character, buffer, length)
but not sure how to mix what you have with this
Yes sir
It's coming in fast. But it maintains it's format of float,float,float
Then it has a return or a new line
So it comes in
90.8,89.8,120.5
91.6,88.6,116.8
And so on...
...
..
..
Hey all an update on the project
I have the teensy receiving data on HWSERIAL lines
And I'm able to print what's coming in and my data is coming in correctly
90.1,55.6,125.9
This is an example...
I actually havent bought one yet but I have seen it
and have seen it working.
Whether it works and works well would have to come by testing.
But even if I have to go with acouple wireless...
Well Ive been able to find bluetooth for as low as $5
All in all it is going to be in investment because being able to do motion capture really
pushes the ability to produce more animation.
even...
Thanks headroom for the reply.
I dont want to make it sound like I wouldnt want to rewrite the project, im just putting out the questions
to see what yourself and other more advanced technicians...
Thanks Paul, as Headroom said this above my skill level. but thats ok i'll keep pushing ahead.
The plan is to have each imu device( this includes a 9dof sensor with its microcontroller to do fusion)...
Thanks for your reply.
This was my design before your explanation on
rs485. Being that I don't know much about protocols
would this work?2923
Hey guys so ive read over your great ideas on how to do this but Im not sure about some things.
1. If I have all 10 devices sending x, y, z rotations through rs485, are the sensors just spitting out...
Hey thanks, i really appreciate your help. I'm just getting into this type of science and teensy has been a great product.
Well now thinking about it and the distance from i2c device to another it wouldn't be possible. Being that arm to hand cabling would be about 2feet
Here is the beginnings of the motion capture...
Hey Paul
do you think i could do the math for fusion of more than one imu on the teensy 3.1 ? That way i wouldn't have to have a board per imu
Thanks, do you think 3 of these chips would be the way to go?
https://www.sparkfun.com/products/10124
Ok so to understand it correctly i would have to Daisy chain or could i use a device or even just the teensy to be the hub recieving all the inputs.
Because of where the devices will be i wouldn't...
So 3 feet of cable is to have a little extra in between. I would like to eventually go wireless at every imu but wire is in my current budget
Ok Thanks for the replies.
To my understanding each imu has to have its own mcu because of the math done to fuse the 9dof. Plus it's easier for me to use the fusion code already out there.
The...
I have a 9dof IMU sensors working on i2c to microcontrollers(MC), each IMU will have its own MC. They export the data to serial rx tx. My question is if i have 10 or 15 IMUs with about 3 feet of...
Can anybody help?
The teensy will be used to collect all the data through i2c and organize it then send it to the pc, hopefully it will be able to do all that with a wireless connection (blutooth or xbee)
Thanks for the reply. From the research I've seen the blobs read are the 4 brightest.
Also if needed using its 45deg field of view, using the cameras own fov to cut off other sectors and if needed...
Okay so in my designing of the project i made a 3d animation for anyone who wants to visualize it better
https://drive.google.com/file/d/0B-fqtYHx6AykUlBzeHJaS0hmVm8/edit?usp=sharing
Okay so I saw online johnny chung lee do some pretty amazing things with the wiimote.
My bases for this next project is to use the wiimote through the teensy to get blob position data into the...
3D animation motion capture using the Teensy 3.0 board. The following Project was possible using the teensy board and some sensors to capture the motions.
All of you have seen big blockbuster...
Here is my potentiometer version. At this point I have both arms working in 3ds max.
Watch "Mocap puppet" on YouTube
https://www.youtube.com/watch?v=llyMYImXD74&feature=youtube_gdata_player