thank you for that, that helps alot.
Type: Posts; User: Fox95
thank you for that, that helps alot.
This may be a dumb question....
if I have the teensy plugged into a usb cable and its plugged into my PC usb port for programming with arduino IDE and at the same time a seperate external 5v power...
I have a project that incorporates a teensy 4.0 along with 2 other very small boards, one is a CAN transceiver, another is a accelerometer. I'd like to get them all onto one board in a condensed...
Yes. I saw that. Any ideas as to why its slower than the 400 requested?
20874
i just had the same issue today converting from wire ti i2c_t3.
in the pic are the commands that fixed it for me. the wire begin had to be like them.
if you havent seen this page:...
here's the logic analyzer capture file if that helps.
thanks
i am using a logic analyze to measure speed of the i2c bus, but need some help. its supposed be operating at 400khz
this is in the code:
Wire.begin(I2C_MASTER, 0x00, I2C_PINS_18_19,...
I have a device that generates a value and is being transimtted over pins 3 and 4 on the teensy through a waveshare CAN board to a data logging device, the transmit rate looks like its maybe 100hz...
i figured out the answer to my question, so i post it in case someone else searches this in the future.
msg.buf[0] = 0x0315 >> 8; is the answer if you want to only transmit the 03 portion.
...
question: is there a way to mask off a hex value?
example of hex value i am transmitting over CAN:
msg.buf[0] = 0x0315;
----------------------------------------
lets say i only want to...
awesome, thanks!
as an update for anyone who may read this in the future, as unlikely as it sounds, i had two bad waveshare CAN boards. ordering new ones solved the above issues. thanks to everyone who responded...
how long will the 3.6 be around?
is there a board that replaces it?
Im deciding if i should develop a project on the 3.6 board if its going to be phased out anytime soon.
also is there...
the wiring is good, it was working yesterday sending CAN messages just fine.
the issue arose when i tried to merge the two sets of code where the imu was connected the same time as the wave share...
there's a bigger problem here. is there anyone here that works for teensy?
when i upload one program it will work fine, but when i upload another program its like it wont initiliaze the CAN pins...
i have a scope on pins 3, 4 on the teeensy board, this pic shows what they are putting out, does it look normal?20628 the waveshare board was working earlier
its a waveshare sn65hvd230
i didnt think they had enable pins?
but it worked fine in before when it was just runing that very simply code of transmit only, it transmitted properly
20627
i moved the CAN transmit block of code up into the area right under where it prints the values for the imu and this does not work either
as you can see it prints the values of the imu out...
yes, it currently prints out that values of roll pitch yaw etc...
i need to ask one more question, i need to apply the above can transmit to a code file that runs a IMU but i am unsure where to put it in the file, i pasted it into the main loop but its not...
i figured it out it needs to be this:
Can0.write(msg);
and now it works correctly! thank you for the help this is just what i needed, perfect!
it errors when compiling:
the line: CAN.write (msg); is the error line and says 'CAN' was not declared in this scope
20621
the values circled in the pic taken from your examples are not hex. I do not know what they are or where they come from.
so can you tell me how to modify that code to simply transmit hex...
I have ifct downloaded. Can you describe how to transmit the values in the right side of the pic using ifct?
maybe if i ask like this, I'd like to be able to send messages in hex like the code on the right. does anyone know the line command to be able to do this with flexcan? the code on the left is...
Is there a very basic example of a CAN bus write program somewhere for the teensy 3.6
I found this on the sparkfun examples and i have made it work with the sparkfun can bus shield and uno.
but...
thats what i need to do, I have a waveshare CAN board and I need to send roll, pitch, yaw, and accleration over CAN
it's fixed, im now getting IMU readings.
on to the next set problems LOL..... what do you know about CAN messaging? haha
I have found the source of problem. thanks for your help. it is working correctly now. there was a issue with the breadboard. so frustrating....
yes, just like the pics above, 3.3 volt source on (3rd pin down right next to 23) GND and pin 19 and 18
thanks for that, tried it just now, still nothing. runs through the whole list of addresses and finds nothing.
I checked the i2c board with a scope and it works on a adafruit board out outputs a...
i cannot get the 3.6 to find any i2c devices at all, i have moved several i2c devices to the 3.6 that are known to work on other boards and that have internal pull up resistors(adafruit) and they...
so i am finding that when i hook any i2c device to the teensy 3.6 and use the i2c scanner its not finding anything. what am i missing with the 3.6 board that it wont find anything?
EDIT.... I...
no, it has always been 0x4A still does not work
tried without the brackets20596
but now says error BNO not found at "default" address. so it must not be changing the address the 0x4A?
look above at the code i posted i already changed it to 4A
no there's nothing else attached, the wires go from male to female and whatever is out of the pic just loops back around to where its supposed to go.
i re wired with all consistent colors so you...
20595
i have PS0 and PS1 conected to ground, and i commented out the lines you suggested and changes. still does prints no values. I commented out the NRST lines but they were necessary for it...
20592
this is all i get
im using the i2c wiring with 2.2k pu resistors on the sda and scl wires. ive had it working and printing imu values from a adafruit board, but i really need to use the...
I cannot get any reading from the imu using this code below. I can get reading from it from other boards but when i switched to the teensy 3.6 it now will not work any help is much appreciated
...
Hello, thanks for any help here. I have a IMU that I need to use and would like to run it on a Teensy 3.6.
I have a example that I found on GitHub. would someone be able to help me with...