Show Posts
Pages: [1] 2 3 ... 24
1  Using Arduino / Storage / Re: HOW DO I STORE IN EEPROM longer BYTES on: Today at 06:14:41 pm
I would be better to use >>8 and &255 instead. If you are using a smart compiler it will convert the /256 to >>8 and %256 to &255 but there is a small risk that the compiler will really generate code for /256 and %256.
2  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 17, 2014, 08:21:45 pm
You know when I created this topic in 2013 I remember the felling of accomplishment that I had discovering how to get the module to work without any help but reading the datasheet and a few short code examples showing undocumented registers and a few blog posts about the module. I also saw people saying this was impossible but they are wrong. The felling of accomplishment of getting it working without someone holding my hand was great and I don't need that to get stuff to work. I like being self motivated but sadly not everyone does. I see these three questions and they are no different than anything else that I have answered. Regardless of what they put I most likely still would have wrote this unless they wrote about what they discovered about the ov7670. I understand it is easy to ask the expert but sometimes, I think people need to take the time to be problem solvers themselves. Anyways I have already done quite a bit and I think enough for me to call it good. I would like to hear about what you learned that I do not know about the ov7670 not just repeat questions. The main reason I am bored and tired of this is because it feels very repetitive. So please lets keep this thread still active I am not saying I am leaving the forum but if you have a question that I already answered don't expect a response from me. What would make me happy is if you had documentation or official code that I don't have already that would help me get interested in answering questions again. Also I would like to point out that I have received help from some awesome arudino members when I was a newbie in the past and before I really was good at solving my own issues and I think this and my other answers has more than repayed them for their efforts.
3  Using Arduino / Sensors / Re: Can a camera be used in arduino WITHOUT an arducam shield? on: September 17, 2014, 08:07:08 pm
I have done it without the shield and so can you. See the topics I have made covering the ov7670 and the MT9D111.
4  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 12, 2014, 08:43:02 pm
A better understanding of the ov7670 and a better written post would help both yourself and I. The ov7670 does not have RX and TX pins. The arduino has those.
5  Using Arduino / Storage / Re: How can I dump a large serial stream strait to an SD card? on: September 12, 2014, 07:44:34 pm
No I am saying the host should send how many bytes it is about to send to the Arduino that way the receiver program which is running on the Arduino knows when to stop and close the file. Yes your method if no bytes have been sent after x amount of time call sync() works too I just think that my method was easier to implement. The filesize is not written to the file. I am aware of how to get the filesize without storing it in the file already.
6  Using Arduino / Storage / Re: How can I dump a large serial stream strait to an SD card? on: September 12, 2014, 04:47:49 pm
Yes I do know how large the file will be as the topic poster said the filesize will be around 92kb so a 16-bit integer could not be used. He could use a 24-bit variable which avr-gcc supports see https://gcc.gnu.org/wiki/avr-gcc#Extensions I do agree the variable size was a bit excessive. I just forgot avr-gcc supported 24 bit integers.
7  Using Arduino / Storage / Re: How can I dump a large serial stream strait to an SD card? on: September 10, 2014, 08:27:37 pm
First send the file size as an unsigned 32-bit integer then just send the data without doing any conversion. Write the data directly to the card.
8  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 10, 2014, 08:22:09 pm
Better is relative. See some pictures I took with the ov7670. Anyways I am not quite sure with the issue is but your solution does not actually solve the problem, it is just a hack and the colors are still wrong. I guess it is up to you if you want to settle for this. Have you tried my advice to not write to register 0x11? If so tell me what the results were and from there we can continue to try the issue.
9  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 10, 2014, 07:48:21 pm
Yes that would cause the images to look weird. From your post it sounds like you did not check from pin header to microcontroller please do that. Also make sure that all pins d0 to d7 are an input. Also make sure internal pull up resistors are disabled. Also you are using the fifo version so remove the writes to register 0x11.
10  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 10, 2014, 07:04:34 pm
I get a similar image. I do not understand why the image looks like that. Are you using the fifo version? If so you should use a faster XCLK. If so remove the code that changes the divider settings. The fifo uses DRAM and maybe it is not being refreshed fast enough.
11  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 10, 2014, 03:37:53 pm
Is d7-d0 connected correctly? Also yes the ov7725 is better relative to the ov7670 but there are even better than the ov7670 depending on what you want. Also what converter are you using. Did you try mine?
12  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 10, 2014, 01:19:05 pm
The issue appears to be the fact that you are enabling rgb565 mode but trying to treat it as yuv422. After making sure that you have yuv422 enabled if that is what you want you will then need to see if any bytes need to be skipped if you still get a green image. Also I just realized instead of skipping bytes you will be better off changing the order by changing registers 0x3D and 0x3A.
13  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 09, 2014, 06:45:30 pm
Did you read what I recently wrote? I am getting tired of answering duplicate questions.
14  Using Arduino / Audio / Re: Using PWM DAC vs. R2R for sound synthesis on: September 09, 2014, 05:29:39 pm
Well all I wanted to test is if PWM sounded good or not and it did.
15  Using Arduino / Sensors / Re: ov7670 with both arduino uno and now mega on: September 09, 2014, 03:55:58 pm
Yes I admit that this is more of a hack than a solution. This would mean that n amount of bytes were missed.
Pages: [1] 2 3 ... 24