Hi,
I am trying to get the LinkSprite Camera with TTL Serial to work.
I start by sending the reset command (56 00 26 00 HEX), but all I can get back is 76 HEX the correct return should be 76 00 26 00 HEX.
I am using a 5V supply.
I am not sure why I only get the 76 HEX returned? has anybody used this camera?
I have attached some of my code below.
Thanks
When you want to use variables, you’ll need to keep the cloud connection alive.
Have you tried to relay the incoming bytes to Serial and catch them via USB on you PC?
But still try to avoid long running loop() - which might be difficult, when reading 640x400 images at 38400 baud.
The above suggestion is good but unfortunately will not work reliably. The current Serial1 code uses only polled IO, meaning you must be able to read the USART receive data register at least as fast as bytes are received at the serial baud rate. At 38400 bps, that means you must call Serial1.Receive() every 0.24 milliseconds. This is impossible because the code includes delay(), and (I believe) the rate at which loop() is not deterministic with delays of at least a few ms.
Hi,
So how do I read from the serial1 port? I assume for Serial1.Receive() you mean Serial1.Read()?
What about the serial buffer?
You seem to imply it is never going to work from the Spark?
ok,
Also had an issue with the TCPClient which I think is also being looked at.
Where do I look to find updates to bugs? how does the Spark get updated?
Thanks
Has anyone worked with this camera previously? I managed to get my hands on one in a bit to have a simple tutorial for the Security Camera that was shown during kickstarter.
The code is working since on Arduino after some changes as the old code given has some issues.
Printing fine on serial but the software given to try taking a snapshot and display isn’t working.
Anyone managed to do so previously? Just want to make sure the camera is ok before i switch over to the
@zach I’m using the default at 38400 on the software serial to the Camera and 19200 to the PC.
Sorry i forgot to mention i’m on the arduino as i yet to copy over to
Just want to make sure things are all working before i do the porting over and know the isn’t the issue
Also, does the camera actually store the entire picture content and transmit? Like snap, store content, send to serial. It’s taking too long just to get one photo and i would like to make it faster!
Kennethlimcp, software serial is notorious for not working well. It uses interrupts for receiving data so at higher baud rates, it can really bog things down. The worst though is when it sends, to get the timing right, it disables ALL interrupts while it puts out a fill 10 bits per byte of data. If you have an arduino mega or Leonardo, they have two or more hardware serial ports that are more suitable to the task.