Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 08:06 PM
    @boelle.. Sorry for the delay in getting back to you here. I just finished an updating the board and testing the new ones that came - haven't tested all the pins yet though. I still need to do a proper BOM. The one...
    77 replies | 33766 view(s)
  • mjs513's Avatar
    Today, 08:02 PM
    Didn't mean to get this thread sidetracked with the underside pins but I completely forgot about the castellated boards for the underside pins that @defragster noted. Giving some thought to those before I posted and...
    45 replies | 1449 view(s)
  • mjs513's Avatar
    Today, 01:26 PM
    For what its worth - I do a lot of robotics projects and typically I may be using 3-4 serials, two I2Cs, maybe 1 or 2 SPIs and a varies of PWM pins since I will use wheel encoders, 4 or 5 sonar sensors, servos, etc. I...
    45 replies | 1449 view(s)
  • mjs513's Avatar
    06-07-2018, 11:47 PM
    Well. I think it was worth every second of it (or hours to put it together). Really enjoyed it and got the capabilities across. Think we all do that for everything not just videos :) I always wind up with glare or...
    9 replies | 661 view(s)
  • mjs513's Avatar
    06-07-2018, 11:04 PM
    Really like the article and video on usb touchscreen and changes to audio library. Guess something new to sidetrack me. Hard to stay focused sometimes :).
    9 replies | 661 view(s)
  • mjs513's Avatar
    06-06-2018, 10:52 AM
    Interesting letter. Wouldn't think it about the Gate's. PS. It opened up fine for me in EDGE. LOL
    18 replies | 725 view(s)
  • mjs513's Avatar
    06-03-2018, 07:46 PM
    To be honest Kurt, absolutely no reason for it not to be an .INO file. Think it was just me trying to group things together to clean up everything in one huge file and not thinking about the ramifications.
    10 replies | 236 view(s)
  • mjs513's Avatar
    06-03-2018, 06:09 PM
    You might be sorry you asked for the whole code, or least the two offending pieces - oh never mind here is the whole zip. I did make one change to get it to work properly - had to move the send_parameter function from...
    10 replies | 236 view(s)
  • mjs513's Avatar
    06-03-2018, 05:07 PM
    That's the strange thing, while its in a .h file its not defined in a class. It should be global ? Probably just don't really understand fully how .h's should work.
    10 replies | 236 view(s)
  • mjs513's Avatar
    06-03-2018, 05:01 PM
    Ok. Here is one for you. I had that structure in the .h file that I use for all the mavlink related stuff in the sketch and I did an include in the main sketch. It would always throw an error in both cases (the one...
    10 replies | 236 view(s)
  • mjs513's Avatar
    06-03-2018, 03:38 PM
    Know this is not a real Teensy issue but I am completely stumped on this one. Just a little background - I am making a homebrew pseudo-autopilot using a T3.5 and working on implementing Mavlink protocol interfacing to...
    10 replies | 236 view(s)
  • mjs513's Avatar
    05-26-2018, 03:53 PM
    So if I understand correctly in the teensquitto.ino file I can create the web server/client code and then just send the output to? Wouldn't that conflict with udp or mqtt connections? Not trying to be difficult but...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-26-2018, 02:40 PM
    next question is on setting up a Wifi server and client. In looking at the .h and .cpp files it does not look like there is an option for setting up a wifi server currently. Also, in looking at the WiFi client code...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-26-2018, 01:27 PM
    And more examples are being added...... Got to remember that one since I have some with the traces cut and some without :) BTW. Since I am stubborn I managed to get UDP to transmit to APM Planner 2.0 for just...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-25-2018, 10:31 PM
    Ah I remember it well :) It has both matured and improved dramatically since it began. And tested the heck out of... My poor little t3.5's got over worked - kudo's should go to Paul on its design - it took a beating...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-25-2018, 05:05 PM
    Did just notice that ESP8266 Multicast DNS is actually a library within the ESP8266 core. Interesting. Going to try and follow your example and a couple other I have but I thing the examples all use pointers -...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-25-2018, 04:51 PM
    When I was using it I was just streaming UDP packets to a processing sketch and periodically sending a command to the ESP and had no problems. This is probably a lot different that what mavlink and the ground stations...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-25-2018, 06:32 AM
    Ok. Been working this all day. Besides some annoying problems with the loading the feather board. I did manage to test two versions for UDP directly on the ESP. One with Async and the other with just two instances...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-25-2018, 12:09 AM
    Your probably right Chris. Didn't really look at the issue yet - wanted to get the UDP communication working first. :) will have to fix that one to work on non-teensy boards. :)
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 08:51 PM
    Well to a point. When I did just a compile no issues. When I went to load it another story - a bunch of errors associated with the ublox library, .o files. So I am compiling without the GPS. Still have the IMU...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 07:32 PM
    Just finished the conversion and pretty simple. The only error it threw was because I forgot to include elaspsedMillis for the ESP. Only thing I deleted was the onDetect method otherwise its the same sketch. ...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 06:17 PM
    Don't know for sure but I have used UDP before and never had an issue but it was always directly on a ESP8266 or ESP32. Mavlink been used on a lot of different platforms and including Teensies with out issue - seen a...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 05:54 PM
    Ok. Finally got a chance to do some more testing. I changed the buffers on Serial1 to 512 and serial2 to 256. I also changed to v2highbandwidth. The same thing happened, after a couple of minutes I lost...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 03:27 PM
    14550 WiFiUdp, 14555 AsyncUDP Will give it a try. Nope
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 02:57 PM
    Send and receive. Sending data to port 14550 stops as well as receiving any data on port 14555. EDIT. The only way to get it working again is to reset the Teesny which also resets the ESP. I will double...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 02:42 PM
    Yeah it was happening without teensythreads as well and without the IMU data being sent either. EDIT> the little blue lite on the ESP is still on and seems to be blinking very rapidly so it almost looks like its on...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-24-2018, 02:38 PM
    Ok. Added teensythreds to collect GPS/IMU data and then send Mavlink GPS/IMU messages to qGCS. Everything works. Only issue is that after about 10 minutes communication is lost from the ground control station to...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-23-2018, 11:14 PM
    Yeah - they have been around a long time but right now I am not using the libs. BTW: Finally am able to send and receive mavlink messages from qGrounControl. Just have an issue with the incoming packet contents. ...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-23-2018, 03:47 PM
    Yeah now that you mention it you did - sorry - I forgot. Any got it kind of working by asyncUDP for one and wifiUDP for the other port. I got qgroundcontrol at least reading heartbeat messages (gps and basic mavlink...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-23-2018, 11:39 AM
    Ok. Here is another interesting case. If I create two Udp connections: //Teensquitto setup for UDP send and receive teensquitto Udp = teensquitto("WiFiUdp", &Serial1); teensquitto UdpS = teensquitto("WiFiUdp",...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-23-2018, 10:19 AM
    Morning. Not really trying to do loop on the ESP. I will try to explain, may get long winded so forgive me. Oh by the way - don't think its a core problem on the overload: In teensquitto.h you have for read:...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-23-2018, 02:20 AM
    Ok - new problem - can't get WiFiUdp working. I used the code from https://github.com/esp8266/Arduino/blob/master/doc/esp8266wifi/udp-examples.rst and loaded directly on the feather board and it worked no issues. So I...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-23-2018, 12:01 AM
    Ok - I give up. I been at this one all day with no luck on solution which I am sure you know. I am using AsyncUDP to listen for new packets and that seems to be working. But I need to send messages through the...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-22-2018, 02:22 PM
    A couple things, all minor :) For asyncUDP incoming data is grabbed with packetData(). But how do I get that into a char array for processing. If I try and use: strncpy( incomingPacket, packet.data(),...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-21-2018, 10:40 PM
    I was going back and forth between the two and as long as it was plugged in it didn't work. Once I made it stand alone and run off the Teensy 3.3v pin it worked fine. Think, RX0/TX0 is the same as usb serial so it may...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-21-2018, 09:12 PM
    Ok... all seems to be working now - stupid mistake that I would not have realized and did just a last test. I had both the teensy and esp connected to the PC through a usb cable and nothing worked. Once unplugged the...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-21-2018, 07:07 PM
    You definitely have a sense of humor. ;) Anyway the issues I am having with UDP and now MQTT is with my computer. I tried running MQTT direcly (pub and sub) and keep getting socket error. Have to figure out what the...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-21-2018, 04:28 PM
    Yeah - guess you didn't see what I added to my post :)
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-21-2018, 04:17 PM
    Whats the link to marvins library - can't find it? By the way just tried compiling and getting this error again: On - never mind - just saw you updated the sketch when I went to GitHub. Not thinking today -...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-21-2018, 04:05 PM
    You are a gem......
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-21-2018, 06:51 AM
    Downloaded the latest 8266 core from GitHub and received numerous errors around the same two lines that repeated in the cases. I did a conversion but not sure its working: 1. Serial1.write(datar, sizeof(datar)); ...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-20-2018, 05:50 PM
    Just a heads up - tried compiling with the latest version of the 8266 core and it breaks things. Getting invalid conversions now and a bunch of other errors with teensquitto on the ESP. Also tried to run the...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-20-2018, 04:50 PM
    "not asyncudp " ok confused now - think I was following your example - will have to go look up asyncudp :) and how to do that. But don't go too nuts. I just loaded the UDP example from the repository directly on the...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-20-2018, 02:40 PM
    Morning again. Anyway got the 2 versions of wifi scan example (regular and async) but still can't seem to get udp to stream or read from packet sender. Something blocking I think but I can't think of what..... ...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-20-2018, 04:06 AM
    Thanks wise guy - I actually had a couple of demos working (at least the wifiscan examples still work) - mqtt and udp was working nice and even had the demo attached to a 9250 and the Teensy visualizer. Now I have to...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-20-2018, 03:28 AM
    That would be a good idea. This way other people can give it a try since we are talking about it. Also, will SPI_MSTransfer still work with this - I saw you had a spi_MST_controller identified. EDIT: What driving...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-20-2018, 03:19 AM
    Tony... I am sure it is something I am doing that not quite right and trying to figure out why its not working now . it should just like you showed - had it working before no problem now --- arggh....... have to check...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-20-2018, 01:47 AM
    Tried serial1, 2 and 3 on the T3.5 and just does want to work, so I went back to my original config(Link node d1 and T3.2). I am now at the point of at least I pretty sure I am connected: Now listening at IP...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 11:38 PM
    I moved it off 1 because I wanted to put the GPS on it - will move it to 2 and give it another try.
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 09:17 PM
    Yeah - the only difference is that I am using Serial3 - teensquitto Udp = teensquitto("WiFiUdp", &Serial3); --- unless you have Serial1 hardcoded in the ESP Code? which I doubt because Serial3 worked with...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 09:04 PM
    "marvin’s library has been updated quite a bit," - ok will update it but right now I am trying to use UDP. EDIT: I am getting Now listening at IP 192.168.1.159, UDP port 3333 but I don't see 159 in my router as...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 08:46 PM
    Yeah going to go back and double check your sample - but I had run these sketches before and they worked so its driving me nuts. I also hooked up TX0 to RX2 on the teensy so I am getting to see addition info - right...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 08:39 PM
    "(3Megabaud?)" = it really has been awhile - its set at 2megabaud :) wifi cred - first thing I checked Got events all over the place - yep in loop and serialevent1 Wifiscan does work :)
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 07:58 PM
    Running the same sketch that had running before on the other 8266 I had. When I go to my router I don't see it. :( Yep I am using packetsender and using the constructor. Yep I am using the GitHub version... :) ...
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 06:38 PM
    I seem to remember RX0 was for debugging????? By the way having problem getting UDP working with HUZZAH - 99% sure its me and some firewall blocking it. Argh - nothing is ever easy is it////
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 06:17 PM
    So TX1 (ESP) to RX1 on Teensy and either RX to the TX1 on the teensy?
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 05:34 PM
    Yep is now.... :)
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 05:10 PM
    You deserve a break from this before you go back to work. I'll go play with your other library for awhile and see what I can break over there. :)
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:56 PM
    I know I have a loose usb cable so that is probably why the resets. :( Anyway, smallest and fastest work here now as well ----- so I think we killed the LC issues :) at least for now :) ok will do. Pretty sure...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:51 PM
    Testing fastest and absolutely no issues - working great now. You see you forgot to tell me to compile at Fastest so I compiled at smallest and we found an issue :) Yes I know - my fault again :)
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:43 PM
    Yeah probably - but something still weird going on - the lc is now periodically resetting itself - am currently at smallest. Will retry at fastest with the new lib.
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:34 PM
    Heres a good news update - just recompiled the slave at Fastest and its working fine... Going to do smallest again just as a double check - stay tuned. Update: Ok, strange, reloaded at smallest and seems to be...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:32 PM
    Here is my master: #include <SPI.h> #include <SPI_MSTransfer.h> #include "A_ConfigDefines.h" //comment out for T3.x slave devices #define TLC 1 #define moo_lc 10 #define moo_lc_l 5
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:31 PM
    Ok. Something strange going on - remember start and stops we had on SPI0 - this is about 100 times worse and the master only sporadically gets the transfers from the slave. The LED blinks away happily.... regardless...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:21 PM
    Using smallest?
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 03:13 PM
    Just tried 1.8.5 with beta2 and same thing so its not a IDE issue. Do you think theres a variation in chip to chip? Will have to eventually solder up another LC just to test it.
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:37 PM
    Morning Tony. Still can't get SPI1 working to your specs. EDIT: Have no idea why - reloaded everything and copied the files again :( Its like SPI0 and SPI1 are crossed.
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 01:49 PM
    Ok. Picked up a huzzah feather 8266 and getting ready to start this up again and would you believe it - I forgot the connections that have to be made between the teensy and 8266? Help :) Mind too much on SPI lately
    147 replies | 8298 view(s)
  • mjs513's Avatar
    05-19-2018, 11:56 AM
    Reloaded master and slave libraries, reflashed the sketches. Made my settings match yours and no go - would hang and then eventually get a few bad crc's and bad vals. If I change lc_mode to 10,10 it would work but the...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 04:24 AM
    Ok last post for the night. Switched to SPI1 and best I could do was SPI = 11Mhz GPIO2 = 8Mhz LED Tog = 100ms USBprint = 100ms F&F = 2ms LCmode = 10,10 (0,10 did not work) Slave Transfers = 1sec
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 03:22 AM
    Yep - looking real good :) Yeah but SPI0 would still be broken and if I didn't find it someone else would have :P :)
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 03:04 AM
    Right now testing SPI0, you know me, how long did it take me to get a T3.6 up and running :) Not to fret - I am planning to switch to SPI1 tomorrow - my eyes are getting crossed right now. Then I will see what I can...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:57 AM
    Ok.. guess we can't do what we have been doing ;) Edit: Nope - SPI0 unless you specified SPI for SPI1 in the library :) slave.begin(SPI);
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:55 AM
    Hate to disappoint you but I am currently squeezing 11Mhz out of a 6Mhz bus with GPIO2 at 4Mhz and LCmode(10,10). LCmode(0,10) - doesn't work at 11/4Mhz LCmode(10,10) - no good at 11/11 or 11/8 but does work at...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:38 AM
    Ok. Right now I have two speeds defined: #define SPI_SPEED 10000000 #define GPIO2_SPI_SPD 4000000 Now if SPI1 is used: #define SPI_SPEED 11000000 #define GPIO2_SPI_SPD 11000000 With lcmode(0,10)?
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:32 AM
    Agree it was a hassle, but I think it was more because we didn't see the note on the different clocks for spi0 and spi1
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:14 AM
    Can they now coexist in the same library or still keep them separate ?
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:12 AM
    So that is what the whole issue boiled down to - you kind of hinted at it when you kept saying it was a timing issue.
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-19-2018, 02:00 AM
    Ok. My fault again, :( but at least you found the bug :) Cool. GPIO2 at 8Mhz and LCmode(0,10).... maybe (0,5). Well, guess that beats me, with 10Mhz/6Mhz with 1 sec slave transfer and 10ms master transfers :) ...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-18-2018, 07:10 PM
    This is giving me a headache - I was looking at the Definitive Guide to Cortex.... but there is nothing in those series of books that discusses SPI or I2C etc.... Everything is in the reference manual... argh... Learn...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-18-2018, 05:25 PM
    Was just looking at the reference manual - spi sounds like a lot like double talk to me - get the general idea but confusing because then it starts going into FIFO or DMA. Almost sounds like they want you to use their...
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-18-2018, 02:05 PM
    Arrgh :( I will leave that pleasure to you :)
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-18-2018, 01:51 PM
    Interesting. This LC chip is crazy - spending more time on it than we did for the T3.x. Any config you want me to try?
    1818 replies | 52088 view(s)
  • mjs513's Avatar
    05-18-2018, 01:14 PM
    I have been using beta 5 yesterday and today and can tell you that have the chip id on the com port (yes I am using Windows10) is such a pleasure. I have an LC and 3.5 attached and upload different sketches to each. ...
    40 replies | 2355 view(s)
  • mjs513's Avatar
    05-18-2018, 12:57 PM
    Running now at 10Mhz SPI and 6Mhz gpio2. Have 1sec transfers from slave to master, 100ms LED toggles and 10ms transfers to the slave. So far so good, it running fine no OTs, no pauses and no crashes so far. I will...
    1818 replies | 52088 view(s)
More Activity
About mjs513

Basic Information

About mjs513
Location:
New York
Interests:
Robotics, Image Processing
Occupation:
Aerospace Eng (Retired)

Statistics


Total Posts
Total Posts
1,629
Posts Per Day
1.12
Last Post
Teensy 3.5/3.6 Breakout board to test things with. Today 08:06 PM
General Information
Last Activity
Today 10:29 PM
Join Date
07-01-2014