Mohit:
but you are the one who made the offensive comment
What offensive comment?
Frankly if anything is offensive it is your implication that there is something wrong with a person who enjoys a same-sex relationship.
...R
Mohit:
but you are the one who made the offensive comment
What offensive comment?
Frankly if anything is offensive it is your implication that there is something wrong with a person who enjoys a same-sex relationship.
...R
Robin2:
What offensive comment?Frankly if anything is offensive it is your implication that there is something wrong with a person who enjoys a same-sex relationship.
...R
I don't have any problem with a person who enjoys a same-sex relationship Its just i am not . Its Their life they can do whatever they want.
Okk i will use Serial.write() but what will be the parameters for the function for sending an image.
Read again reply #8
Grumpy_Mike:
Read again reply #8
So you are saying First i open the file using SD.open()function and using the file.read() function read a byte and send serially using Serial.write() function. Am i right ?
AWOL:
JPEG doesn't have pixels, so yes, you'll need some code to decode the JPEG (Huffman decode, inverse DCT).
A bitmap would be much simpler.
And what about this decoding ?or should i first try on bitmap images(as i know it is pixel dependent ) and if i succeed then i try to work on jpg images with all decoding stuff ?
Mohit:
I don't have any problem with a person who enjoys a same-sex relationship Its just i am not .
Then I don't understand why you might consider it offensive if someone who does not know know you considers it possible that you might be in a same-sex relationship. That seems to me a properly broad-minded attitude by the other person. By all means tell them that your preference is for a heterosexual relationship - but don't take offense at the alternative possibility.
...R
And what about this decoding ?or should i first try on bitmap
Look you are being very woolly about what you want to do with what.
You have not explained what you want to do with the image. If it is display them then display them on what? What size are your images? The jpeg format is not very efficient for small images.
Read this http://www.deviceplus.com/how-tos/arduino-guide/jpeg-decoding-on-arduino-tutorial/
Mohit:
So you are saying First i open the file using SD.open()function and using the file.read() function read a byte and send serially using Serial.write() function. Am i right ?
And what about this decoding ?or should i first try on bitmap images(as i know it is pixel dependent ) and if i succeed then i try to work on jpg images with all decoding stuff ?
Why did you inject JPEG into your question when all you really want to do is just read a byte from your file and send it serially? Your program could care less what someone calls the file. Just do as you suggested in the first sentence and you will be fine.
Paul
First off I want to say that I have no experience with LiFi, but I am greatly intrigued by the technology and concepts behind it. That is why I opened this (horrendous) thread.
ABOUT THIS THREAD:
@Mohit, @Delta_G, and others - let's all try to calm down and have an intelligent discussion about a fascinating topic. As I read each post, one by one, I realized how quickly this thread escalated in anger. As I stated above, I think this thread is "horrendous."
@Mohit, please try to go back and edit your posts before you make them. For all I know, you may not even speak much english. But most of what you have said (to me) makes no sense. While I don't want to call you out on every missing apostrophe and period, please try to revise your posts so that others are not straining to read them! ![]()
Everyone else, please try to be calm and patient when working with this problem. No offence, but @Mohit is obviously not experienced with Arduino, and as "experts" (as Delta_G put it) you guys are supposed to help newcomers learn and grow. Please try to "keep your cool."
And be patient!
AS FAR AS THE TECHNICAL DISCUSSION:
@Mohit, please tell me if I am wrong about what you're trying to say From your posts, it sounds like you want to read an image file (preferably JPEG) from an SD Card, which is certainly doable. Then, you want to transfer the image via LiFi (and later IR) to another Arduino. This other Arduino will have a screen set up where you can display the image.
As someone said, an image (or computer file in general) is just a collection of bytes. "Serial.write()" is a function that allows you to send bytes. So here is what (I think) the others are trying to say:
You read ONE byte from the SD card. You use "Serial.write()" to transmit that byte. (I assume you have some kind of system where you can convert Serial data into LiFi, that's what your code seemed to show, since you were using a Serial port.) So yeah. Just read a byte from the SD Card file, and use "Serial.write()" to send that byte to your LiFi system.
The receiving end is what I am not clear on. Once the image is fully transmitted, you want to display it on a screen? That may be somewhat tricky... I don't know, ideas anyone? :o
-SQ
Yup you are right I don't speak much english and Iam sorry once again
and Yes you are almost right
stupid-questions:
AS FAR AS THE TECHNICAL DISCUSSION:
@Mohit, please tell me if I am wrong about what you're trying to say From your posts, it sounds like you want to read an image file (preferably JPEG) from an SD Card, which is certainly doable. Then, you want to transfer the image via LiFi (and later IR) to another Arduino. This other Arduino will have a screen set up where you can display the image.
One thing i like to mention my priority is to send an image through lifi (without any concern for image format )but as from reply #1 some Pro said it would be easy to handle bitmap image that's why i am thinking first perform my project using bmp image later on when i get some clue and experience i can carry on to transmitting image of any format through Lifi .
You read ONE byte from the SD card. You use "Serial.write()" to transmit that byte. (I assume you have some kind of system where you can convert Serial data into LiFi)
Here you mentioned "some kind of system " can you please highlight me more about it ?
The receiving end is what I am not clear on. Once the image is fully transmitted, you want to display it on a screen? That may be somewhat tricky... I don't know, ideas anyone? :o
-SQ
Yes I agree with your question for receiving . I am thinking to display that image on computer with the help of some software (software which is capable to reconstruct image from receiving data). But the problem here is I don't know about this type of software so please help me with this too.
I don't want to display the image on some screen i want it on my computer.
Mohit:
but as from reply #1 some Pro said it would be easy to handle bitmap image
In Reply #3 the same person acknowledged that he had made a mistake in Reply #1
Yes I agree with your question for receiving . I am thinking to display that image on computer with the help of some software (software which is capable to reconstruct image from receiving data). But the problem here is I don't know about this type of software so please help me with this too.
I don't want to display the image on some screen i want it on my computer.
You will need a program running on your PC that receives the data from the Arduino and saves it as a file. After that any of the image viewing programs will be able to display the image.
One thing that may cause a difficulty is the need for the image file on the PC to be exactly the same as the file on the SD Card without any extra, or missing bytes at the start or end. I would achieve that by sending a message to the PC program which means that the next N bytes after this are the image data. Then the PC program would know where the image data starts and how long it is.
And, as far as I can see you have still not told us how the images get onto the SD Card or why you want to involve an Arduino in this. If you tell us that you will probably get advice that is much more useful. For example, why not just plug the SD Card into the PC and avoid the Arduino altogether?
...R
The reason I wrote that a bitmap would be appropriate was because I thought that the requirement was for the image to be sourced and viewed on Arduinos ("how to reconstruct image from the pixels").
The original post made no mention of SD cards or PCs.
One thing i like to mention my priority is to send an image through lifi
No, the priority is to send a file.
I'm going to suggest locking this thread to give the OP a chance to reformulate the question in the light of responses given, and start a new thread, at which point, this one will simply disappear.
In fact, I'm not only going to suggest it, I'm going to do it.